mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Add Cache::getDriverName() and clean up confusing method names
This commit is contained in:
parent
aaba4e306d
commit
9b71df6a01
4 changed files with 47 additions and 23 deletions
2
classes/cache/CacheHandler.class.php
vendored
2
classes/cache/CacheHandler.class.php
vendored
|
|
@ -49,7 +49,7 @@ class CacheHandler extends Handler
|
|||
*/
|
||||
public function isSupport()
|
||||
{
|
||||
return $this->_always_use_file || !(Rhymix\Framework\Cache::getCacheDriver() instanceof Rhymix\Framework\Drivers\Cache\Dummy);
|
||||
return $this->_always_use_file || (Rhymix\Framework\Cache::getDriverName() !== 'dummy');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue