forked from uup-dump/api
Fix cache compression
This commit is contained in:
parent
c85957b8a9
commit
4dbe52a32b
@ -71,7 +71,7 @@ class UupDumpCache {
|
||||
if(!file_exists('cache')) mkdir('cache');
|
||||
|
||||
$cacheContent = json_encode($cache)."\n";
|
||||
if($this->isCompressed) $cacheContent = @gzencode($cache);
|
||||
if($this->isCompressed) $cacheContent = @gzencode($cacheContent);
|
||||
|
||||
@file_put_contents($cacheFile, $cacheContent);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user