From 5fdb3b2fd900f6ccf759307c174718113662e80e Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Fri, 7 Oct 2016 22:36:36 +0200 Subject: [PATCH] [FileCache] Build path using function instead of constant --- caches/FileCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caches/FileCache.php b/caches/FileCache.php index e11ce23..929d902 100644 --- a/caches/FileCache.php +++ b/caches/FileCache.php @@ -36,7 +36,7 @@ class FileCache extends CacheAbstract { public function purgeCache(){ $cacheTimeLimit = time() - 86400; // 86400 -> 24h - $cachePath = 'cache'; + $cachePath = $this->getCachePath(); if(file_exists($cachePath)){ $cacheIterator = new RecursiveIteratorIterator( new RecursiveDirectoryIterator($cachePath),