Tagged: Page Cache, W3 Total Cache and WooCommerce
- AuthorPosts
- August 19, 2020 at 12:12 pm #26016Abboud HashemGuest
Hello,
We are using W3 Total Cache with WooCommerce Bookings, and everything has been working well with caching pages- except for one problem which is that the product pages with dynamic reservation tool also get cached and this sometimes creates issues for the users as they should always see the latest dynamic content from the server. Do you have any suggestions on how we can fix this? Thanks!
All the best,
Abboud
August 19, 2020 at 12:28 pm #26023Jesse OwensKeymasterHello Abboud-
There are a couple of ways you can fix this, I’ll go over one easy way, and one that might be a little more effective, but takes some coding on your part.
First, the easy way. In Performance > Page Cache > Advanced, you can use the options Never cache the following pages, Never cache pages associated with these categories, or Never cache pages that use these tags.
That way, if your reservations are always on a specific page, you can just omit that page from the page cache. If you have reservations on more than one post or page, you can either categorize them or tag them to omit them from the cache.
The more advanced way will let you keep the pages cached, just excluding certain fragments from the cache. You can use these instructions to add sections of your page templates that should not be cached and always be loaded dynamically.
- AuthorPosts
- The topic ‘W3 Total Cache & WooCommerce Bookings issue’ is closed to new replies.