From 33631435b91641d19c9a46e4d32c42c3cf8a29ad Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 14 Nov 2016 17:45:12 +0100 Subject: [PATCH] Added cache todo --- DataStorage/Cache/FileCache.php | 1 + 1 file changed, 1 insertion(+) 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));