if ($this->_options
['automatic_serialization'
]) { // we need to serialize datas before storing them
$data =
serialize($data);
} else { if (!
is_string($data)) { Zend_Cache::
throwException('Datas must be string or set automatic_serialization = true'
);
} } // automatic cleaning
if ($this->_options
['automatic_cleaning_factor'
] > 0
) { $rand = Shopware\Components\Random::
getInteger(1,
$this->_options
['automatic_cleaning_factor'
]);
if ($rand == 1
) { // new way || deprecated way
if ($this->_extendedBackend ||
method_exists($this->_backend, 'isAutomaticCleaningAvailable'
)) { $this->
_log('Zend_Cache_Core::save(): automatic cleaning running', 7
);
$this->
clean(Zend_Cache::CLEANING_MODE_OLD
);
} else { $this->
_log('Zend_Cache_Core::save(): automatic cleaning is not available/necessary with current backend', 4
);
} } }