[open_now] and [closed_now] don’t update with WP Rocket cache enabled

[ad_1]

Hi,

First off, great free plugin, the best I’ve seen on the subject, very simple yet feature rich and powerful.

I have a problem with caching. I have the following code inside an Elementor shortcode widget :

<a href="#pratique">
[open_now]Nous sommes ouverts[/open_now]
[closed_now]Nous sommes fermé actuellement[/closed_now]
</a>

Basically, it simply shows either of value if the store is opened or closed. And I have a CSS rule that hides the value depending on the class (show, hide) returned by your plugin.

I use WP Rocket on my website and when caching is enabled, it seems like the shortcode is not being executed each time we reload the page, because this info don’t update.

I know this maybe a WP Rocket problem, but I wanted to check it out with you first, is there any JavaScipt being applied with these shortcodes ? Or is it simply PHP code being executed ?

What’s strange is that I never had problem with other shortcodes and WP Rocket to my knowledge.

Do you have any idea what might be causing this problem ? For now the website doesn’t cache the home page (where the text is shown, at the top of the page), but this kind of defeat the purpose of WP Rocket 🙂

Let me know, thanks !

  • This topic was modified 18 minutes ago by tmnewslang.
  • This topic was modified 18 minutes ago by tmnewslang.
  • This topic was modified 18 minutes ago by tmnewslang.
  • This topic was modified 17 minutes ago by tmnewslang.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer