Tagged: Page Fragment Caching
-
AuthorPosts
-
August 7, 2023 at 1:10 pm #100348KesienaGuest
Hi,
I would like to find out how to please exclude a quote basket from being cached.
1. In a private/incognito window please add a product to the quote basket e.g: https://welding-alloys.zerobox.co.za/product/roll-cladder-welding-machine/ (Click Request Quote at the bottom of this page)
2. Navigate to any other page on the website e.g: https://welding-alloys.zerobox.co.za/company/sustainability/
3. In another private/incognito window navigate to https://welding-alloys.zerobox.co.za/company/sustainability/ (The cached quote basked is now displayed on this page for a completely new user)Please see video explaining the above: https://tempclip.com/cuG2KDpqDyeixR2/watch
Thanks.
August 7, 2023 at 1:19 pm #100395Marko VasiljevicKeymasterHello,
Thank you for reaching out and I am happy to assist you with this.
There are two ways to approach this. The first is to check the plugin you are using for the cart to see if there is an Ajax option that will bypass the cache and keep the cart icon dynamic.
Alternatively, you can use Page Fragment Cache in W3 Total Cache. Please check more in our FAQ for more details about Page Fragment Caching.
With this, you can wrap a specific code withand exclude it from the cache.
To confirm this is related to Page Caching, please let me know if the issue persists when you disable Page Cache, and also, let me know if you have any additional layers of caching like server-side caching or similar.THanks!
August 8, 2023 at 12:23 pm #100455KesienaGuestHi Marko,
1. Unfortunately the plugin: https://woocommerce.com/products/request-a-quote-plugin-for-woocommerce/ doesn’t have an Ajax option to keep the mini quote dynamic.
2. It is related to page cache. When the Cache is turned off, the mini quote works as normal. We have tried to use the fragment cache, but cannot get it to work…can you advise on how to implement the fragment cache on the below piece of code: https://welding-alloys.zerobox.co.za/wp-content/uploads/mini-quote.txt which renders the mini quote in question.
Thanks.
August 17, 2023 at 9:56 am #101620KesienaGuestHi Marko,
Just checking if you have any update on the above issue?
Thanks.
August 17, 2023 at 9:58 am #101667Marko VasiljevicKeymasterHello,
This should be done in the template where this cart is executed, for example, the header.php
there instead of the PHP tags, you should wrap the code withas suggested in the FAQ.
Thanks! -
AuthorPosts
- The topic ‘How to exclude mini quote from cache’ is closed to new replies.