diff --git a/src/DOFileCache.php b/src/DOFileCache.php index abab70d..77d0914 100644 --- a/src/DOFileCache.php +++ b/src/DOFileCache.php @@ -112,6 +112,11 @@ public function get($key) } } + // Bail immediately if the file could not be read, or its data could not be uncompressed + if (!$cacheFileData) { + return false; + } + $cacheObj = json_decode($cacheFileData); // Unable to decode JSON