Beispiel #1
0
        protected virtual void ClearCaches()
        {
            var cacheUtil = new CacheUtil();

            Factory.GetDatabases()
            .ForEach(x =>
            {
                x.Engines.TemplateEngine.Reset();
                cacheUtil.ClearLanguageCache(x);
            });
            Sitecore.Caching.CacheManager.ClearAllCaches();

            // Slow as hell, most people don't use it.
            //Translate.ResetCache();
        }