We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e936b57 commit 6f75be7Copy full SHA for 6f75be7
src/DOFileCache.php
@@ -105,12 +105,16 @@ public function get($key)
105
$cacheFileData = file_get_contents($filePath);
106
107
if ($this->config['gzipCompression']) {
108
- $cacheFileData = gzuncompress($cacheFileData);
+ try {
109
+ $cacheFileData = gzuncompress($cacheFileData);
110
+ } catch (\Exception $e) {
111
+ $cacheFileData = false;
112
+ }
113
}
114
115
$cacheObj = json_decode($cacheFileData);
116
- // Unable to decode JSON (could happen if compression was turned off while compressed caches still exist)
117
+ // Unable to decode JSON
118
if ($cacheObj === null) {
119
return false;
120
0 commit comments