public function registerCacheResource($type, Smarty_CacheResource $callback)
    {
        $this->smarty->registered_cache_resources[$type] = $callback;

        return $this;
    }
public function registerCacheResource($type, Smarty_CacheResource $callback)
    {
        $this->smarty->registered_cache_resources[$type] = $callback;

        return $this;
    }
public function registerCacheResource ( $ type , Smarty_CacheResource $ callback ) { $ this -> smarty -> registered_cache_resources [ $ type ] = $ callback ; return $ this ; }
Registers a cache resource to cache a template's output

@param  string                       $type     name of cache resource type
@param  Smarty_CacheResource         $callback instance of Smarty_CacheResource to handle output caching
@return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining
Registers a cache resource to cache a template s output