public function clearAllCache(Smarty $smarty, $exp_time = null, $type = null)
    {
        // load cache resource and call clearAll
        $_cache_resource = Smarty_CacheResource::load($smarty, $type);
        $_cache_resource->invalidLoadedCache($smarty);
        return $_cache_resource->clearAll($smarty, $exp_time);
    }