Skip to content

Commit

Permalink
File cache fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antonokulov committed Dec 3, 2014
1 parent 37ead72 commit dc6a7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mindy/Cache/FileCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected function getValue($key)
{
$cacheFile = $this->getCacheFile($key);

if (@filemtime($cacheFile) > time()) {
if (file_exists($cacheFile) && @filemtime($cacheFile) > time()) {
return @file_get_contents($cacheFile);
} else {
return false;
Expand Down

0 comments on commit dc6a7c6

Please sign in to comment.