예제 #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());
    }
예제 #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));
 }