Help with ESI shortcodes
-
Can somebody explain better how the ESI shortcodes will work. I have a site that shows a banner between 9pm and 9am across the site, through a shortcode which I created and set as ESI for public with a 300 ttl (which is fine for us). But, it’s really common that logged in users keep seeing the banner during the whole day.
The problem only occurs at Home Page, which have a one week TTL. Both public and private templates have TTL set to half an hour.
Now, if I understood right, the banner from the ESI shortcode should be refreshing at Home Page each 5 minutes (per set in the shortcode) while the Home Page itself will only refresh at 1 week, is that right? Now, why logged in users are seeing a cached banner from hours ago, while logged-out users are seeing it correctly (without banner)?
Or am I wrong, the shortcode will only clear it’s cache when the page clear it’s cache, meaning that there is no point in having a shortcode with shorter TTL than the main page where it’s set?
- The topic ‘Help with ESI shortcodes’ is closed to new replies.