X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=cache%2Fstores%2Ffile%2Flib.php;h=514a4bd4fb6d6b5083e6ccc21856c4e4b2be0b10;hp=f7db610836099859ec84e89c81727bd5f4ebe6bb;hb=51eba172e68b14bfa0fbc7ba39eec62d8092b2c9;hpb=90048725b06c9d69553cf8e21261e485786c94be diff --git a/cache/stores/file/lib.php b/cache/stores/file/lib.php index f7db6108360..514a4bd4fb6 100644 --- a/cache/stores/file/lib.php +++ b/cache/stores/file/lib.php @@ -336,6 +336,7 @@ class cachestore_file extends cache_store implements cache_is_key_aware, cache_i $filename = $key.'.cache'; $file = $this->file_path_for_key($key); $ttl = $this->definition->get_ttl(); + $maxtime = 0; if ($ttl) { $maxtime = cache::now() - $ttl; }