- This topic has 9 replies, 3 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
March 9, 2023 at 12:43 am #2561020
Gilles
Hi
I have integrated your code (https://docs.generatepress.com/article/hide-cart-in-menu-when-empty/) to not display the cart in the menu if it is empty.
it works. But I have a small problem, probably related to the cache system I use (Lite speed cache).
Indeed, after an addition to the basket, if I return to a page previously displayed (before the addition), the basket does not appear in the menu.
I guess I need to exclude the menu (or just the cart widget ?) from cache menu?
If so, please tell me how to proceed?March 9, 2023 at 12:45 am #2561022Fernando Customer Support
Hi Gilles,
Can you share the link to the site in question?
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
March 9, 2023 at 12:47 am #2561024Gilles
Hi Fernando
Of course. It’s : https://www.un-jardin-bio.com/March 9, 2023 at 1:17 am #2561059Fernando Customer Support
I can confirm that it’s a caching issue. You can test this out by adding
/?nocacheat the end of your URL.What caching are you using? It would be best to check with them regarding this. It would also be good to check if your Hosting Provider has some caching enabled on your site as well.
March 9, 2023 at 1:52 am #2561097Gilles
I use Lite Speed Cache.
But their support is almost non-existent… and I know in advance that they will refer me to you…
There is no server-side caching.March 9, 2023 at 3:25 am #2561231David
StaffCustomer SupportHi there,
does the cart work as expected without the LS Cache plugin enabled ?
March 9, 2023 at 3:52 am #2561273Gilles
Hello David,
Yes of course. By the way, caches are disabled on the Shopping Cart page.March 9, 2023 at 4:21 am #2561319David
StaffCustomer SupportI had a look around for some answers, seems other users have had similar issues, but most LS support topics or docs bare no resemblance to the plugin today. And i am not familiar with it aside from the issues that it causes some users.
A couple of docs recommend:
Litespeed -> Cache -> Excludes –> Do Not Cache Cookies and add this:
woocommerce_items_in_cartTo stop it caching cookies.
Give that a try.
March 9, 2023 at 5:02 am #2561364Gilles
It works !
Thank you very much.March 9, 2023 at 5:40 am #2561412David
StaffCustomer SupportWow – i am so glad to hear that 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.