diff --git a/DataStorage/Cache/FileCache.php b/DataStorage/Cache/FileCache.php index 1fc0c804c..d86623525 100644 --- a/DataStorage/Cache/FileCache.php +++ b/DataStorage/Cache/FileCache.php @@ -355,7 +355,7 @@ class FileCache implements CacheInterface } if ($expire >= 0) { - $created = Directory::created($name)->getTimestamp(); + $created = Directory::created(File::sanitize($key, self::SANITIZE))->getTimestamp(); $now = time(); $raw = file_get_contents($path); $expireStart = strpos($raw, self::DELIM);