Exemple #1
0
    function writeFragment($key, $content, $options = array())
    {
        if (!$this->cacheConfigured()) return;
        $key = $this->fragmentCachekey($key, $options);

        return $this->_cache_store->save($content, $key, isset($options['host'])?
        $options['host']:$this->_buildCacheGroup());
    }
Exemple #2
0
 public function writeFragment($key, $content, $options = array())
 {
     if (!$this->cacheConfigured()) {
         return;
     }
     $key = $this->fragmentCachekey($key, $options);
     return $this->_cache_store->save($content, $key, $this->_buildCacheGroup($options));
 }