From: Alexander Ebert Date: Tue, 5 Feb 2013 01:39:14 +0000 (+0100) Subject: Fixed disk cache X-Git-Tag: 2.0.0_Beta_1~505 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b93514058125627b649ff10ea25c2173b22828ff;p=GitHub%2FWoltLab%2FWCF.git Fixed disk cache --- 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; }