Added cache todo

This commit is contained in:
Dennis Eichhorn 2016-11-14 17:45:12 +01:00
parent 7749528746
commit 33631435b9

View File

@ -142,6 +142,7 @@ class FileCache implements CacheInterface
return false;
}
// todo: allow $key to contain / as char and create subdirectory if necessary. This is important for cleaner caching.
$path = File::sanitize($key, '~');
file_put_contents($this->cachePath . '/' . $path . '.cache', $this->build($value, $expire));