예제 #1
0
 public void HandleEvent(EntityUpdatedEvent <ProductTag> eventMessage)
 {
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.ProductTagPopularPrefixCacheKey);
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.ProductTagByProductPrefixCacheKey);
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.SitemapPrefixCacheKey);
 }
예제 #2
0
 public void HandleEvent(EntityUpdatedEvent <ProductAttributeValue> eventMessage)
 {
     _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.ProductAttributePicturePrefixCacheKey);
     _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.ProductAttributeImageSquarePicturePrefixCacheKey);
 }
예제 #3
0
 public void HandleEvent(EntityUpdatedEvent <Poll> eventMessage)
 {
     _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.PollsPrefixCacheKey);
 }
예제 #4
0
 public void HandleEvent(EntityUpdatedEvent <Vendor> eventMessage)
 {
     _staticCacheManager.Remove(NopModelCacheDefaults.VendorNavigationModelKey);
     _staticCacheManager.RemoveByPrefix(string.Format(NopModelCacheDefaults.VendorPicturePrefixCacheKeyById, eventMessage.Entity.Id));
 }
예제 #5
0
 public void HandleEvent(EntityUpdatedEvent <ProductCategory> eventMessage)
 {
     _staticCacheManager.RemoveByPrefix(string.Format(NopModelCacheDefaults.CategoryHasFeaturedProductsPrefixCacheKeyById, eventMessage.Entity.CategoryId));
 }
예제 #6
0
 public void HandleEvent(EntityUpdatedEvent <SpecificationAttribute> eventMessage)
 {
     _cacheManager.RemoveByPattern(SPEC_ATTRIBUTES_PATTERN_KEY);
 }
 public void HandleEvent(EntityUpdatedEvent <Category> eventMessage)
 {
     _cacheManager.RemoveByPrefix(AppModelCacheDefaults.CategoriesListPrefixCacheKey);
 }
예제 #8
0
 public void HandleEvent(EntityUpdatedEvent <ReturnRequestReason> eventMessage)
 {
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.ReturnRequestReasonsPrefixCacheKey);
 }
예제 #9
0
 public void HandleEvent(EntityUpdatedEvent <TopicTemplate> eventMessage)
 {
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.TopicTemplatePrefixCacheKey);
 }
예제 #10
0
 public void HandleEvent(EntityUpdatedEvent <NewsItem> eventMessage)
 {
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.NewsPrefixCacheKey);
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.SitemapPrefixCacheKey);
 }
예제 #11
0
 public void HandleEvent(EntityUpdatedEvent <StateProvince> eventMessage)
 {
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.StateProvincesPrefixCacheKey);
 }
예제 #12
0
 public void HandleEvent(EntityUpdatedEvent <ProductSpecificationAttribute> eventMessage)
 {
     _cacheManager.RemoveByPrefix(string.Format(QNetModelCacheDefaults.ProductSpecsPrefixCacheKeyById, eventMessage.Entity.ProductId));
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.SpecsFilterPrefixCacheKey);
 }
예제 #13
0
 //specification attribute options
 public void HandleEvent(EntityUpdatedEvent <SpecificationAttributeOption> eventMessage)
 {
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.ProductSpecsPrefixCacheKey);
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.SpecsFilterPrefixCacheKey);
 }
예제 #14
0
 public void HandleEvent(EntityUpdatedEvent <RelatedProduct> eventMessage)
 {
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.ProductsRelatedIdsPrefixCacheKey);
 }
예제 #15
0
 public void HandleEvent(EntityUpdatedEvent <Vendor> eventMessage)
 {
     _cacheManager.RemoveByPattern(VENDORS_LIST_PATTERN_KEY);
 }
예제 #16
0
 public void HandleEvent(EntityUpdatedEvent <CheckoutAttribute> eventMessage)
 {
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.CheckoutAttributesPrefixCacheKey);
 }
예제 #17
0
 public void HandleEvent(EntityUpdatedEvent <Setting> eventMessage)
 {
     //clear models which depend on settings
     _cacheManager.RemoveByPattern(OFFICIAL_NEWS_PATTERN_KEY); //depends on AdminAreaSettings.HideAdvertisementsOnAdminArea
 }
예제 #18
0
 //shopping cart items
 public void HandleEvent(EntityUpdatedEvent <ShoppingCartItem> eventMessage)
 {
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.CartPicturePrefixCacheKey);
 }
예제 #19
0
 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);
 }
예제 #22
0
 /// <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);
 }
예제 #23
0
 public void HandleEvent(EntityUpdatedEvent <Manufacturer> eventMessage)
 {
     _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.ManufacturerNavigationPrefixCacheKey);
     _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.SitemapPrefixCacheKey);
     _staticCacheManager.RemoveByPrefix(string.Format(NopModelCacheDefaults.ManufacturerPicturePrefixCacheKeyById, eventMessage.Entity.Id));
 }
예제 #24
0
 public async Task HandleEventAsync(EntityUpdatedEvent <Setting> eventMessage)
 {
     await _staticCacheManager.RemoveByPrefixAsync(PICTURE_URL_PATTERN_KEY);
 }
예제 #25
0
 public void HandleEvent(EntityUpdatedEvent <ProductSpecificationAttribute> eventMessage)
 {
     _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.SpecsFilterPrefixCacheKey);
 }
예제 #26
0
 public void HandleEvent(EntityUpdatedEvent <Category> eventMessage)
 {
     _cacheManager.RemoveByPattern(CATEGORIES_LIST_PATTERN_KEY);
 }
예제 #27
0
 public void HandleEvent(EntityUpdatedEvent <Order> eventMessage)
 {
     _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.HomepageBestsellersIdsPrefixCacheKey);
     _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.ProductsAlsoPurchasedIdsPrefixCacheKey);
 }
예제 #28
0
 public void HandleEvent(EntityUpdatedEvent <Manufacturer> eventMessage)
 {
     _cacheManager.RemoveByPattern(MANUFACTURERS_LIST_PATTERN_KEY);
 }
예제 #29
0
 public void HandleEvent(EntityUpdatedEvent <BlogPost> eventMessage)
 {
     _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.BlogPrefixCacheKey);
     _staticCacheManager.RemoveByPrefix(NopModelCacheDefaults.SitemapPrefixCacheKey);
 }
예제 #30
0
 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));
 }