mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
Ensure that clear() returns bool in all cache drivers
This commit is contained in:
parent
7beaff8241
commit
115ffa937e
3 changed files with 4 additions and 1 deletions
2
common/framework/drivers/cache/file.php
vendored
2
common/framework/drivers/cache/file.php
vendored
|
|
@ -171,7 +171,7 @@ class File implements \Rhymix\Framework\Drivers\CacheInterface
|
|||
*/
|
||||
public function clear()
|
||||
{
|
||||
Storage::deleteDirectory($this->_dir);
|
||||
return Storage::deleteDirectory($this->_dir) ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue