[FileCache] Build path using function instead of constant
This commit is contained in:
parent
9ac678aac5
commit
5fdb3b2fd9
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue