/** * Make an id depending on REQUEST_URI and superglobal arrays (depending on options) * * @return mixed|false a cache id (string), false if the cache should have not to be used */ protected function _makeId() { $id = parent::_makeId(); if (false !== $id) { if (isset($this->_activeOptions['prefixId'])) { $id = $this->_activeOptions['prefixId'] . $id; } } return $id; }
public function start($id = false, $doNotDie = false) { if ($id && Zend_Registry::isRegistered('remove_cache')) { $res = $this->remove($id); } $res = parent::start($id, true); if ($res) { l($_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . ' (' . (microtime(1) - T0) . ' s.)', 'CACHE'); die; } else { #l($_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . ' (' . (microtime(1) - T0) . ' s.)', 'NOCACHE'); return false; } }