Try your search with a different keyword or use * as a wildcard.
using Nop.Core.Domain.News;
using Nop.Services.Caching;
namespace Nop.Services.News.Caching;
///
/// Represents a news item cache event consumer
///
public partial class NewsItemCacheEventConsumer : CacheEventConsumer
{
///
/// Clear cache data
///
/// Entity
/// Entity event type
/// A task that represents the asynchronous operation
protected override async Task ClearCacheAsync(NewsItem entity, EntityEventType entityEventType)
{
if (entityEventType == EntityEventType.Delete)
await RemoveByPrefixAsync(NopNewsDefaults.NewsCommentsNumberPrefix, entity);
await base.ClearCacheAsync(entity, entityEventType);
}
}