From 4dbe52a32bcf904505f6d999cbe2f011e9659325 Mon Sep 17 00:00:00 2001 From: "eraseyourknees@gmail.com" <112027564+eraseyourknees@users.noreply.github.com> Date: Thu, 25 Aug 2022 18:46:36 +0200 Subject: [PATCH] Fix cache compression --- shared/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/cache.php b/shared/cache.php index 0efde67..59e13cc 100644 --- a/shared/cache.php +++ b/shared/cache.php @@ -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); }