using Nop.Core.Domain.Catalog; using Nop.Services.Caching; namespace Nop.Services.Catalog.Caching; /// /// Represents a specification attribute group cache event consumer /// public partial class SpecificationAttributeGroupCacheEventConsumer : CacheEventConsumer { /// /// Clear cache data /// /// Entity /// Entity event type /// A task that represents the asynchronous operation protected override async Task ClearCacheAsync(SpecificationAttributeGroup entity, EntityEventType entityEventType) { if (entityEventType != EntityEventType.Insert) await RemoveByPrefixAsync(NopCatalogDefaults.SpecificationAttributeGroupByProductPrefix); } }