We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01dd34f commit 3e5215bCopy full SHA for 3e5215b
src/Sushi.php
@@ -81,7 +81,7 @@ public static function bootSushi()
81
$states['no-caching-capabilities']();
82
break;
83
84
- case file_exists($cachePath) && filemtime($dataPath) <= filemtime($cachePath):
+ case file_exists($cachePath) && filesize($cachePath) > 0 && filemtime($dataPath) <= filemtime($cachePath):
85
$states['cache-file-found-and-up-to-date']();
86
87
0 commit comments