ClearCachedFeed() public static method

Clears the specified feed from object cache.
public static ClearCachedFeed ( string feedUrl ) : void
feedUrl string A representing the URL of the feed.
return void
Exemplo n.º 1
0
        private void ClearCache()
        {
            RockMemoryCache cache = RockMemoryCache.Default;

            SyndicationFeedHelper.ClearCachedFeed(GetAttributeValue("RSSFeedUrl"));
            cache.Remove(TemplateCacheKey);
        }
Exemplo n.º 2
0
        private void ClearCache()
        {
            SyndicationFeedHelper.ClearCachedFeed(GetAttributeValue(AttributeKey.RSSFeedUrl));

            if (LavaService.RockLiquidIsEnabled)
            {
#pragma warning disable CS0618 // Type or member is obsolete
                LavaTemplateCache.Remove(this.TemplateCacheKey);
#pragma warning restore CS0618 // Type or member is obsolete
            }

            LavaService.RemoveTemplateCacheEntry(this.TemplateCacheKey);
        }
Exemplo n.º 3
0
 private void ClearCache()
 {
     SyndicationFeedHelper.ClearCachedFeed(GetAttributeValue(AttributeKey.RSSFeedUrl));
     RockCache.Remove(TemplateCacheKey);
 }
Exemplo n.º 4
0
 private void ClearCache()
 {
     SyndicationFeedHelper.ClearCachedFeed(GetAttributeValue("RSSFeedUrl"));
     LavaTemplateCache.Remove(TemplateCacheKey);
 }