private void ClearCache()
 {
     try
     {
         _outputCacheManager.RemoveItems();
     }
     catch (Exception ex)
     {
         Log.Error("Unable to clear output cache", ex);
     }
 }
 private void ClearCache()
 {
     try
     {
         _logService.Debug <ClearDonutOutputCache>("ClearCache");
         _outputCacheManager.RemoveItems();
     }
     catch (Exception ex)
     {
         _logService.Error <ClearDonutOutputCache>("ClearCache", ex, "Unable to clear output cache");
     }
 }
        public int ClearOuputCache(string controller, string action)
        {
            if (string.IsNullOrEmpty(controller))
            {
                if (!string.IsNullOrEmpty(action))
                {
                    throw new ArgumentNullException(controller, "Controller must be provided when action not empty");
                }

                //Relase site map cache on clear all output cache for all stores
                foreach (var store in _storeClient.GetStores())
                {
                    //Need to set storeId for session because SiteMapStoreCacheKeyGenerator uses it to generate cache key
                    _sessionService.CustomerSession.StoreId = store.StoreId;
                    SiteMaps.ReleaseSiteMap();
                }
            }


            return(_outputCacheManager.RemoveItems(controller, action));
        }
 private void ClearCache()
 {
     _outputCacheManager.RemoveItems();
 }