/** * Constructor * * @param array $options associative array of options * @throws Zend_Cache_Exception * @return void */ public function __construct(array $options = array()) { // this is ugly, but if no absolute path is set cronjobs and cli scripts // might fail. It's ugly because this is the only part of the class that // now uses code from the Magento core. if (array_key_exists('cache_dir', $options) && substr(strval($options['cache_dir']), 0, 1) !== '/') { $options['cache_dir'] = Mage::getBaseDir() . DS . $options['cache_dir']; } parent::__construct($options); }
public function __construct(array $options = array()) { if (!isset($options['cache_file_perm'])) { $options['cache_file_perm'] = 0666; } if (!isset($options['hashed_directory_perm'])) { $options['hashed_directory_perm'] = 0777; } $this->_options['compression'] = isset($options['compression']) ? (bool) $options['compression'] : false; parent::__construct($options); }
/** * * @param array $options */ public function __construct(array $options = array()) { parent::__construct($options); $this->_disabledTags = Axis::single('core/cache')->getDisabled(); }