Nginx, FastCgi cache and product page stock numbers caching
-
Hi!
I hope you are doing well.
I’m using fast velocity minify, Redis object cache by Till Kruss and FastCGI cache on my website.
If I’m not wrong, FastCGI is not caching WooCommerce dynamic pages (cart, checkout and my account). I also tried to confirm this. But it is caching product pages. And I just realized that there’s a dynamic object on a product page: stock numbers (X number in stock, out of stock, etc.).
And I tried to see if stock numbers are changing with 2 different browsers (and in private mode): they are not changing!
Do you have any idea how to handle this? Preferably without excluding product pages from the FastCGI cache.
Because if a customer sees a product is in stock and when tries to add to the cart just so to realize it’s out of stock, is really bad. It could even be categorized as deceptive. (As if I’m luring them to the shop and hoping they are going to buy something else.)
I really would like to keep the product pages cached because I’m really happy with the speed of the website.
Hope you have a solution for this.
Thank you
- The topic ‘Nginx, FastCgi cache and product page stock numbers caching’ is closed to new replies.