using Nop.Core.Domain.Blogs;
using Nop.Services.Caching;
namespace Nop.Services.Blogs.Caching;
///
/// Represents a blog post cache event consumer
///
public partial class BlogPostCacheEventConsumer : CacheEventConsumer
{
///
/// Clear cache data
///
/// Entity
/// A task that represents the asynchronous operation
protected override async Task ClearCacheAsync(BlogPost entity)
{
await RemoveByPrefixAsync(NopBlogsDefaults.BlogTagsPrefix);
}
}