ESI shortcode caching block ttl=0
-
I am using the esi shortcode to cache the “Howdy username” welcome message at the top of a WordPress page. The esi shortcode looks like this:
[esi login_logout cache="private" ttl="0"]
I am having a problem where the welcome message is sometimes blank, even though the login_logout shortcode always returns some text for display. Clearing the cache will restore the welcome message. When the welcome message is missing, Litespeed’s HTML comment will look like:
<!-- Block cached by LiteSpeed cache 6.0.0.1 on 01-24-2024 06:25:54 -->
When it works properly (which is 99% of the time), the HTML command says the block was uncached. Why is the block ever cached in some instances? And why would the block be empty?
On a side note, if I have the LiteSpeed option “Cache Logged-in Users” set to ON, do I need to even use ESI for the welcome message?
- The topic ‘ESI shortcode caching block ttl=0’ is closed to new replies.