Example #1
0
 /**
  * Stop the cache
  *
  * @param  array   $tags             Tags array
  * @param  int     $specificLifetime If != false, set a specific lifetime for this cache record (null => infinite lifetime)
  * @param  string  $forcedDatas      If not null, force written datas with this
  * @param  boolean $echoData         If set to true, datas are sent to the browser
  * @param  int     $priority         integer between 0 (very low priority) and 10 (maximum priority) used by some particular backends
  * @return void
  */
 public function _flush($data)
 {
     if ($this->_cancel) {
         return $data;
     }
     $this->_tags = Centurion_Cache_TagManager::end($this->_tags);
     return parent::_flush($data);
 }
Example #2
0
 /**
  * Callback for output buffering
  * (shouldn't really be called manually)
  *
  * @param  string $data Buffered output
  * @return string Data to send to browser
  */
 public function _flush($data)
 {
     $this->_activeOptions['tags'] = Centurion_Cache_TagManager::end($this->_activeOptions['tags']);
     return parent::_flush($data);
 }
Example #3
0
 /**
  * Stop the cache
  *
  * @param  array   $tags             Tags array
  * @param  int     $specificLifetime If != false, set a specific lifetime for this cache record (null => infinite lifetime)
  * @param  string  $forcedDatas      If not null, force written datas with this
  * @param  boolean $echoData         If set to true, datas are sent to the browser
  * @param  int     $priority         integer between 0 (very low priority) and 10 (maximum priority) used by some particular backends
  * @return void
  */
 public function end($tags = array(), $specificLifetime = false, $forcedDatas = null, $echoData = true, $priority = 8)
 {
     parent::end(Centurion_Cache_TagManager::end($tags), $specificLifetime, $forcedDatas, $echoData, $priority);
 }