[FileCache] Build path using function instead of constant

This commit is contained in:
logmanoriginal 2016-10-07 22:36:36 +02:00
parent 9ac678aac5
commit 5fdb3b2fd9

View file

@ -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),