diff --git a/DataStorage/Cache/FileCache.php b/DataStorage/Cache/FileCache.php index 44657bda5..2a9aa9232 100644 --- a/DataStorage/Cache/FileCache.php +++ b/DataStorage/Cache/FileCache.php @@ -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));