mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-21 22:08:41 +00:00
Added cache todo
This commit is contained in:
parent
7749528746
commit
33631435b9
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user