Fix cache compression

This commit is contained in:
eraseyourknees@gmail.com 2022-08-25 18:46:36 +02:00
parent c85957b8a9
commit 4dbe52a32b

View File

@ -71,7 +71,7 @@ class UupDumpCache {
if(!file_exists('cache')) mkdir('cache'); if(!file_exists('cache')) mkdir('cache');
$cacheContent = json_encode($cache)."\n"; $cacheContent = json_encode($cache)."\n";
if($this->isCompressed) $cacheContent = @gzencode($cache); if($this->isCompressed) $cacheContent = @gzencode($cacheContent);
@file_put_contents($cacheFile, $cacheContent); @file_put_contents($cacheFile, $cacheContent);
} }