Updated Cache

This commit is contained in:
Francis Besset 2013-02-20 15:30:01 +01:00
parent f26fc4f72a
commit 55ae5e7e99
1 changed files with 2 additions and 2 deletions

View File

@ -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);