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