From b93514058125627b649ff10ea25c2173b22828ff Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 5 Feb 2013 02:39:14 +0100 Subject: [PATCH] Fixed disk cache --- .../files/lib/system/cache/source/DiskCacheSource.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php index a7fd036cca..17e2350260 100644 --- a/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php @@ -49,7 +49,7 @@ class DiskCacheSource implements ICacheSource { // load cache try { - return $this->readCache($filename); + return $this->readCache($cacheName, $filename); } catch (\Exception $e) { return null; @@ -116,7 +116,7 @@ class DiskCacheSource implements ICacheSource { } // maxlifetime expired - if ($maxLifetime > 0 && (TIME_NOW - $mtime) > $filename) { + if ($maxLifetime > 0 && (TIME_NOW - $mtime) > $maxLifetime) { return true; } -- 2.20.1