We’re using Cloudflare with page rules to control cache for a WooCommerce site.
I see lots of advice is to bypass cache for the various WooC cookies (eg items in cart etc).
But is this really necessary as it will slow down site once something added to cart.
If you are using Ajax cart, and are bypassing cache using rules for all admin/account/cart/checkout pages why should you need to bypass it on the cookies?
Am I missing something here?!
fritex
May 13, 2022, 4:45pm
#2
In short, because, if the content would be cached, visitorA would see the items in a cart from the visitorB, etc.
I’d suggest for more information as there are additional related things mentioned in below posts:
Despite of not knowing the capabilities of the origin host/server of ecwid provider, in terms of a W3TC, and despite this might be a question for StackExchange forums, but from my experience with, you would have to make sure and enable:
configure web server (Apache or Nginx or some other) → PHP tuning + PHP-OPCache (Zend)
Page Cache: Disk
Browser cache (configure per need)
Database cache: Memcached
Object cache: Redis
exclude cookie cache and pages like cart/account/checkout at W3TC due to the…
Kindly, don’t set Cache Level: Cache Everything using a Page Rule, otherwise you would end-up having those issues as described.
Furthermore, are you using any WordPress caching plugin at your origin host/server?
I’d like to share my two posts as they contain more information:
1 Like
fritex:
In short, because, if the content would be cached, visitorA would see the items in a cart from the visitorB, etc.
But I’m saying above that cart, checkout pages etc are excluded from cache by using the page rules.
So there is no other reason as far as I can tell other than dynamic content (if you have it)?
system
closed
May 30, 2022, 2:44pm
#4
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.