Product Cache

Monday, November 25, 2024 6:39:11 PM
  • Posted: Wednesday, May 1, 2019 10:10 PM
  • 8
could you please confirm if below line is removing all the products from cache?
_cacheManager.RemoveByPattern(PRODUCTS_PATTERN_KEY);

I noticed this line in both InsertProduct and DeleteProduct methods of ProductService.

Why should adding single product to Db cause all the Products from cache to be removed?
Why should deleting a single product from Db cause all the Products from cache to be removed?
0
  • Posted: Monday, May 6, 2019 6:36 AM
  • 953
Hi,
It works as expected. Products may have a many dependencies. For example orders, related products, recommended products, personalized products, etc. It's safier to delete all cache.
Best regards,
Patryk

GrandNode Team
0
back to top
Filters