Updated Cache class
This commit is contained in:
parent
d3c31116c7
commit
4a7ec164e5
@ -21,7 +21,9 @@ class Cache
|
||||
{
|
||||
public function __construct($disabled, $type, $directory, $lifetime = null, $limit = null)
|
||||
{
|
||||
BaseCache::setEnabled(!$disabled);
|
||||
$isEnabled = $disabled ? BaseCache::DISABLED : BaseCache::ENABLED;
|
||||
|
||||
BaseCache::setEnabled($isEnabled);
|
||||
|
||||
if (BaseCache::ENABLED == BaseCache::isEnabled()) {
|
||||
BaseCache::setType($type);
|
||||
|
Loading…
Reference in New Issue
Block a user