Add Cache::getDriverName() and clean up confusing method names

This commit is contained in:
Kijin Sung 2016-04-24 16:02:54 +09:00
parent aaba4e306d
commit 9b71df6a01
4 changed files with 47 additions and 23 deletions

View file

@ -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');
}
/**