mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 13:22:16 +09:00
Disable file cache driver
This commit is contained in:
parent
84546b936c
commit
8234fd5c7b
3 changed files with 16 additions and 7 deletions
9
common/framework/drivers/cache/file.php
vendored
9
common/framework/drivers/cache/file.php
vendored
|
|
@ -52,15 +52,14 @@ class File implements \Rhymix\Framework\Drivers\CacheInterface
|
|||
}
|
||||
|
||||
/**
|
||||
* Check if the current cache driver is supported on this server.
|
||||
*
|
||||
* This method returns true on success and false on failure.
|
||||
* Since Rhymix 2.1, This method always returns false.
|
||||
* The file cache driver can only be used through the dummy driver.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function isSupported()
|
||||
{
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -201,6 +200,6 @@ class File implements \Rhymix\Framework\Drivers\CacheInterface
|
|||
protected function _getFilename($key)
|
||||
{
|
||||
$hash = sha1($key);
|
||||
return $this->_dir . '/' . substr($hash, 0, 2) . '/' . substr($hash, 2, 2) . '/' . $hash . '.php';
|
||||
return $this->_dir . '/' . substr($hash, 0, 2) . '/' . $hash . '.php';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue