20 lines
589 B
C#
20 lines
589 B
C#
using Nop.Core.Domain.Blogs;
|
|
using Nop.Services.Caching;
|
|
|
|
namespace Nop.Services.Blogs.Caching;
|
|
|
|
/// <summary>
|
|
/// Represents a blog post cache event consumer
|
|
/// </summary>
|
|
public partial class BlogPostCacheEventConsumer : CacheEventConsumer<BlogPost>
|
|
{
|
|
/// <summary>
|
|
/// Clear cache data
|
|
/// </summary>
|
|
/// <param name="entity">Entity</param>
|
|
/// <returns>A task that represents the asynchronous operation</returns>
|
|
protected override async Task ClearCacheAsync(BlogPost entity)
|
|
{
|
|
await RemoveByPrefixAsync(NopBlogsDefaults.BlogTagsPrefix);
|
|
}
|
|
} |