Example #1
0
 /**
  * Store cache
  * 
  * @return void
  */
 public function dispatchLoopShutdown()
 {
     if (self::$doNotCache || $this->getResponse()->isRedirect() || null === $this->_key) {
         return;
     }
     $this->_cache->save($this->getResponse(), $this->_key);
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 public static function save($data, $key)
 {
     if (self::isEnabled()) {
         self::$_cache->save($data, self::_multiTenantKey($key));
     }
 }