• Resolved jlahm

    (@jlahm)


    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please make sure you are on latest plugin version and , also remove the cache=private part , since it’s ttl = 0 , which means generation in real-time , no need to public or private

    Thread Starter jlahm

    (@jlahm)

    I am using the latest plugin version. Prior to getting your reply, I changed the plugin’s option from cache=”private” to cache=”public”. Since I made that change, the caching problem has not happened again.

    Plugin Support qtwrk

    (@qtwrk)

    all good now ?

    Thread Starter jlahm

    (@jlahm)

    It seems to be working fine after the change to cache=”public”. I think it does mean that the plugin is not properly handling the case when you combine cache=”private” and ttl=”0″.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘ESI shortcode caching block ttl=0’ is closed to new replies.