Fixed disk cache
authorAlexander Ebert <ebert@woltlab.com>
Tue, 5 Feb 2013 01:39:14 +0000 (02:39 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 5 Feb 2013 01:39:14 +0000 (02:39 +0100)
wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php

index a7fd036cca2617586350eaa976d03352974f83e9..17e23502606317058033a3afb23fd29ec24938e0 100644 (file)
@@ -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;
                }