In ProgressCache: add to cart button and closing message
Tagged: cache, opening hours, status
- This topic has 3 replies, 2 voices, and was last updated 1 month, 1 week ago by
Alex.
- AuthorPosts
- September 24, 2023 at 7:44 pm #37920
LucasLorenson
ParticipantHello,
I’m using the WP-Rocket plugin to cache the site and improve loading performance.
But I noticed that when the store closes, that is, when the website is outside its scheduled opening hours, the add to cart button remains available instead of being replaced by the store closed message.
Only when I clear the site’s cache does the message appear.
The same also happens when the store opens, you need to clear the cache for the add to cart button to appear.
Is there any way to exclude this theme function from the cache, so that I don’t have to manually clear the entire site’s cache?
Regards,
Lucas LorensonOctober 5, 2023 at 10:09 am #37951Alex
KeymasterHello Lucas Lorenson,
Try first to activate following option:
WooCommerce -> Lafka Order Hours -> Enable Shopping Cart Cache ClearingIf this doesn’t work, then look at the following suggestion from WP-Rocket and try their helper plugin:
https://docs.wp-rocket.me/article/1436-mini-cart-cached-already-has-product-in-itRegards,
AlexOctober 13, 2023 at 9:04 pm #37999LucasLorenson
ParticipantHello Alex,
The function you suggested was already activated and did not work in:
WooCommerce -> Lafka Order Hours -> Enable Shopping Cart Cache ClearingI followed the suggestion from the link you sent me, I installed the plugin but it didn’t work either.
The store closed message continues to be displayed after the store opens. Would there be any other solution?
Regards,
Lucas LorensonOctober 21, 2023 at 7:24 pm #38032Alex
KeymasterHello Lucas Lorenson,
Try to deactivate WP-Rocket for a couple of days to see if it causes it.
And if yes, try also the following:
WP Rocket → Advanced Rules and enter the following value in the Never Cache Cookies field:
woocommerce_items_in_cartRegards,
Alex - AuthorPosts
You must be logged in and have valid license to reply to this topic.