Closed Andrewsville closed 8 years ago
Yeah, the code should look like this instead.
$data = $this->cache->load($id);
return $data !== NULL ? $data : FALSE;
Can you send a pull request?
By the way I believe this is what was causing some of my performance problems before I stopped using this class. Thanks for finding the reason!
We have encountered this issue when using Doctrine annotation reader. When its result is an empty array, it tries to re-read annotations for the particular file on every request because of this ternary that makes DoctrineCache behave like there was no value cached.