Hi,
How does the ecommerce add-on handles caching related to price.
As I read on documentation price is a kind of information that is always retrieved from the PIM. So, how does that works with dispatcher? there is no cache on products page?
Thanks,
Solved! Go to Solution.
Views
Replies
Total Likes
Product page is cached but not the variants. Price is varient & is not cached in file system. However it is available through commerceSession api.
It imports data from PIM & stores under /etc/commerce
Views
Replies
Total Likes
Product page is cached but not the variants. Price is varient & is not cached in file system. However it is available through commerceSession api.
It imports data from PIM & stores under /etc/commerce
Views
Replies
Total Likes
I see, but for example in this page:
http://localhost:4502/content/geometrixx-outdoors/en/equipment/hiking.html
It has a list of products and their prices.
So, as far as I know, usually this page will be cached by dispatcher. In case the product price is changed, there will be a request for all pages where the product is used to clear the cache? Or those pages where products are displayed usually are not cached?
Thanks.
Views
Replies
Total Likes
Page will be cached & no need to clear the cache to get latest price. Price will be calculated & internally uses commerce session.
Views
Replies
Total Likes
Hi Sham,
I didn't understand. When the page is requested, dispatcher caches the html returned, including the price that was retrieve from ecommerceSession. So, next time the page is requested, it will return this HTML. What if the price was changed? This entire HTML should be generated again, right? So, how does the cache should not be cleared?
Thanks
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies