mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 14:08:40 +00:00
Fix method return
This commit is contained in:
parent
a642cc0b4e
commit
875c55d877
|
|
@ -143,15 +143,13 @@ class FileCache implements CacheInterface
|
||||||
public function set($key, $value, int $expire = -1) /* : void */
|
public function set($key, $value, int $expire = -1) /* : void */
|
||||||
{
|
{
|
||||||
if ($this->status !== CacheStatus::ACTIVE) {
|
if ($this->status !== CacheStatus::ACTIVE) {
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: allow $key to contain / as char and create subdirectory if necessary. This is important for cleaner caching.
|
// todo: allow $key to contain / as char and create subdirectory if necessary. This is important for cleaner caching.
|
||||||
$path = File::sanitize($key, self::SANITIZE);
|
$path = File::sanitize($key, self::SANITIZE);
|
||||||
|
|
||||||
File::put($this->cachePath . '/' . trim($path, '/') . '.cache', $this->build($value, $expire));
|
File::put($this->cachePath . '/' . trim($path, '/') . '.cache', $this->build($value, $expire));
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user