Rock.Model.HtmlContentService.FlushCachedContent C# (CSharp) Method

FlushCachedContent() public static method

Flushes the cached HTML for a specific blockId or, if specified, a specific entityValue (Entity Context)
public static FlushCachedContent ( int blockId, string entityValue ) : void
blockId int The block identifier.
entityValue string The entity value.
return void
        public static void FlushCachedContent( int blockId, string entityValue )
        {
            RockMemoryCache cache = RockMemoryCache.Default;
            cache.Remove( HtmlContentCacheKey( blockId, entityValue ) );
        }