/** * Store cache * * @return void */ public function dispatchLoopShutdown() { if (self::$doNotCache || $this->getResponse()->isRedirect() || null === $this->_key) { return; } $this->_cache->save($this->getResponse(), $this->_key); }
/** * Store cache * * @return void */ public function dispatchLoopShutdown() { if (self::$doNotCache || $this->getResponse()->isRedirect() || null === $this->_key) { return; } $response = $this->getResponse(); $data = $response->getBody(true); $this->_cache->save($data, $this->_key, $this->_keyTags); }
public static function save($data, $key) { if (self::isEnabled()) { self::$_cache->save($data, self::_multiTenantKey($key)); } }