Updated Cache
This commit is contained in:
parent
f26fc4f72a
commit
55ae5e7e99
|
@ -19,9 +19,9 @@ use BeSimple\SoapCommon\Cache as BaseCache;
|
|||
*/
|
||||
class Cache
|
||||
{
|
||||
public function __construct($disabled, $type, $directory, $lifetime = null, $limit = null)
|
||||
public function __construct($cacheDisabled, $type, $directory, $lifetime = null, $limit = null)
|
||||
{
|
||||
$isEnabled = $disabled ? BaseCache::DISABLED : BaseCache::ENABLED;
|
||||
$isEnabled = (Boolean) $cacheDisabled ? BaseCache::DISABLED : BaseCache::ENABLED;
|
||||
|
||||
BaseCache::setEnabled($isEnabled);
|
||||
|
||||
|
|
Loading…
Reference in New Issue