Beispiel #1
0
        public void RecycleCacheFor(TypedEntity entity)
        {
            string niceUrl = entity.NiceUrl();

            RemoveFromProvider(entity, frameworkContext.Caches.LimitedLifetime, niceUrl);
            RemoveFromProvider(entity, frameworkContext.Caches.ExtendedLifetime, niceUrl);
            RemoveFromProvider(frameworkContext.ApplicationCache, niceUrl);

            RegenerateCache(niceUrl);
        }
Beispiel #2
0
        public void RecycleCacheFor(TypedEntity entity)
        {
            string niceUrl = entity.NiceUrl();

            RemoveFromProvider(entity, frameworkContext.Caches.LimitedLifetime, niceUrl);
            RemoveFromProvider(entity, frameworkContext.Caches.ExtendedLifetime, niceUrl);
            RemoveFromProvider(frameworkContext.ApplicationCache, niceUrl);

            RegenerateCache(niceUrl);
        }