using Nop.Core.Domain.Catalog; using Nop.Core.Domain.Discounts; using Nop.Services.Caching; namespace Nop.Services.Discounts.Caching; /// /// Represents a discount-product mapping cache event consumer /// public partial class DiscountProductMappingCacheEventConsumer : CacheEventConsumer { protected override async Task ClearCacheAsync(DiscountProductMapping entity) { await RemoveAsync(NopDiscountDefaults.AppliedDiscountsCacheKey, nameof(Product), entity.EntityId); await base.ClearCacheAsync(entity); } }