public void HandleEvent(EntityUpdatedEvent <ProductTag> eventMessage) { _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.ProductTagPopularPrefixCacheKey); _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.ProductTagByProductPrefixCacheKey); _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.SitemapPrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <ProductAttributeValue> eventMessage) { _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.ProductAttributePicturePrefixCacheKey); _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.ProductAttributeImageSquarePicturePrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <Poll> eventMessage) { _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.PollsPrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <Vendor> eventMessage) { _staticCacheManager.Remove(NopModelCacheDefaults.VendorNavigationModelKey); _staticCacheManager.RemoveByPrefix(string.Format(NopModelCacheDefaults.VendorPicturePrefixCacheKeyById, eventMessage.Entity.Id)); }
public void HandleEvent(EntityUpdatedEvent <ProductCategory> eventMessage) { _staticCacheManager.RemoveByPrefix(string.Format(NopModelCacheDefaults.CategoryHasFeaturedProductsPrefixCacheKeyById, eventMessage.Entity.CategoryId)); }
public void HandleEvent(EntityUpdatedEvent <SpecificationAttribute> eventMessage) { _cacheManager.RemoveByPattern(SPEC_ATTRIBUTES_PATTERN_KEY); }
public void HandleEvent(EntityUpdatedEvent <Category> eventMessage) { _cacheManager.RemoveByPrefix(AppModelCacheDefaults.CategoriesListPrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <ReturnRequestReason> eventMessage) { _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.ReturnRequestReasonsPrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <TopicTemplate> eventMessage) { _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.TopicTemplatePrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <NewsItem> eventMessage) { _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.NewsPrefixCacheKey); _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.SitemapPrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <StateProvince> eventMessage) { _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.StateProvincesPrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <ProductSpecificationAttribute> eventMessage) { _cacheManager.RemoveByPrefix(string.Format(QNetModelCacheDefaults.ProductSpecsPrefixCacheKeyById, eventMessage.Entity.ProductId)); _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.SpecsFilterPrefixCacheKey); }
//specification attribute options public void HandleEvent(EntityUpdatedEvent <SpecificationAttributeOption> eventMessage) { _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.ProductSpecsPrefixCacheKey); _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.SpecsFilterPrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <RelatedProduct> eventMessage) { _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.ProductsRelatedIdsPrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <Vendor> eventMessage) { _cacheManager.RemoveByPattern(VENDORS_LIST_PATTERN_KEY); }
public void HandleEvent(EntityUpdatedEvent <CheckoutAttribute> eventMessage) { _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.CheckoutAttributesPrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <Setting> eventMessage) { //clear models which depend on settings _cacheManager.RemoveByPattern(OFFICIAL_NEWS_PATTERN_KEY); //depends on AdminAreaSettings.HideAdvertisementsOnAdminArea }
//shopping cart items public void HandleEvent(EntityUpdatedEvent <ShoppingCartItem> eventMessage) { _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.CartPicturePrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <Setting> eventMessage) { _cacheManager.RemoveByPattern(PICTURE_URL_PATTERN_KEY); }
public async Task HandleEventAsync(EntityUpdatedEvent <Product> eventMessage) { await _luceneService.AddUpdateLuceneIndex(eventMessage.Entity); }
public void HandleEvent(EntityUpdatedEvent <Setting> eventMessage) { _staticCacheManager.RemoveByPrefix(PICTURE_URL_PATTERN_KEY); }
/// <summary> /// Handle tax rate updated event /// </summary> /// <param name="eventMessage">Event message</param> /// <returns>A task that represents the asynchronous operation</returns> public async Task HandleEventAsync(EntityUpdatedEvent <TaxRate> eventMessage) { //clear cache await _staticCacheManager.RemoveByPrefixAsync(TAXRATE_PATTERN_KEY); }
public void HandleEvent(EntityUpdatedEvent <Manufacturer> eventMessage) { _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.ManufacturerNavigationPrefixCacheKey); _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.SitemapPrefixCacheKey); _staticCacheManager.RemoveByPrefix(string.Format(NopModelCacheDefaults.ManufacturerPicturePrefixCacheKeyById, eventMessage.Entity.Id)); }
public async Task HandleEventAsync(EntityUpdatedEvent <Setting> eventMessage) { await _staticCacheManager.RemoveByPrefixAsync(PICTURE_URL_PATTERN_KEY); }
public void HandleEvent(EntityUpdatedEvent <ProductSpecificationAttribute> eventMessage) { _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.SpecsFilterPrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <Category> eventMessage) { _cacheManager.RemoveByPattern(CATEGORIES_LIST_PATTERN_KEY); }
public void HandleEvent(EntityUpdatedEvent <Order> eventMessage) { _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.HomepageBestsellersIdsPrefixCacheKey); _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.ProductsAlsoPurchasedIdsPrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <Manufacturer> eventMessage) { _cacheManager.RemoveByPattern(MANUFACTURERS_LIST_PATTERN_KEY); }
public void HandleEvent(EntityUpdatedEvent <BlogPost> eventMessage) { _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.BlogPrefixCacheKey); _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.SitemapPrefixCacheKey); }
public void HandleEvent(EntityUpdatedEvent <ProductCategory> eventMessage) { _cacheManager.RemoveByPrefix(string.Format(QNetModelCacheDefaults.ProductBreadcrumbPrefixCacheKeyById, eventMessage.Entity.ProductId)); _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.CategoryNumberOfProductsPrefixCacheKey); _cacheManager.RemoveByPrefix(string.Format(QNetModelCacheDefaults.CategoryHasFeaturedProductsPrefixCacheKeyById, eventMessage.Entity.CategoryId)); }