mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 14:38:39 +00:00
Added cache todo
This commit is contained in:
parent
7749528746
commit
33631435b9
|
|
@ -142,6 +142,7 @@ class FileCache implements CacheInterface
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// todo: allow $key to contain / as char and create subdirectory if necessary. This is important for cleaner caching.
|
||||||
$path = File::sanitize($key, '~');
|
$path = File::sanitize($key, '~');
|
||||||
|
|
||||||
file_put_contents($this->cachePath . '/' . $path . '.cache', $this->build($value, $expire));
|
file_put_contents($this->cachePath . '/' . $path . '.cache', $this->build($value, $expire));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user