• Resolved t0t0r0555

    (@t0t0r0555)


    Hello. I have a problem on my site where not logged-in users are served expired data, specifically, the calendar on my page. The calendar plugin I use is ICS Calendar. I have to manually purge the page everyday. Besides calendar, I have other static content on the same page too so I don’t want to go with excluding the page from being cached solution.

    I have contacted the calendar plugin developer but they can’t help. I have tried turning on ESI but the shortcode will not work if I put [esi] in the shortcode. Please help. I’m using LSCache + Cloudflare but I only use Cloudflare to cache wp-content/uploads. This is the LSCache configuration generated automatically on my htaccess file: https://i.imgur.com/Bn4h1wh.png

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

    (@qtwrk)

    Hi,

    when you say put esi in the shortcode , it will not work , how exactly does it not work ?

    and also please provide the report number , you can get it in toolbox -> report -> click “send to LiteSpeed”

    Best regards,

    Thread Starter t0t0r0555

    (@t0t0r0555)

    @qtwrk What I mean by it doesn’t work is the shortcode becomes plain text instead of showing a calendar when I put “esi”.

    Plugin Support qtwrk

    (@qtwrk)

    report number please

    Thread Starter t0t0r0555

    (@t0t0r0555)

    @qtwrk Report number is PCKGETMD

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please try update to latest dev branch , you can get it in toolbox -> beta test -> click “dev” , then upgrade

    there was an issue with ESI + elementor has been addressed

    Best regards,

    Thread Starter t0t0r0555

    (@t0t0r0555)

    Thanks for the solution! It works but only if I don’t use Elementor to edit my page. On a page that uses Elementor, the calendar still appear as plain text if I put the esi code.

    However, I notice there’s an ESI option in one of the Elementor text widget. If I enable it here, do I still need to put esi in my shortcode in order for ESI to work? Please refer to this image: https://i.imgur.com/yYJqOTj.png. Thanks.

    Plugin Support qtwrk

    (@qtwrk)

    have you tried the dev ? it should fixed that , yes you need to manually add esi

    Thread Starter t0t0r0555

    (@t0t0r0555)

    Yes, I already try the dev. Toolbox > Beta Test > Dev > Upgrade. It only fix on page that I don’t use Elementor.

    Thread Starter t0t0r0555

    (@t0t0r0555)

    Is there any way that I can use the ESI function on my calendar without using the shortcode?
    I read this but don’t understand much https://docs.litespeedtech.com/lscache/lscwp/api/#generate-esi-block-url

    Plugin Support qtwrk

    (@qtwrk)

    sadly no , these are 2 only ways

    either the widget (if that option shows up ) , or use the shortcode

    if you set widget option to disable , then add esi into shortcode with ttl = 0 , e.g.

    [esi xxxx ttl=”0″]

    how does it look like ?

    you may need to purge all and make sure ESI is enabled.

    Thread Starter t0t0r0555

    (@t0t0r0555)

    @qtwrk

    if you set widget option to disable , then add esi into shortcode with ttl = 0 , e.g.

    [esi xxxx ttl=”0″]

    This doesn’t work as well. However, if I put esi after the plugin shortcode like this [ics_calendar esi ttl="0"], it doesn’t have the same problem but I don’t know if ESI caching function is working or not.

    Plugin Support qtwrk

    (@qtwrk)

    hi,

    [ics_calendar esi ttl="0"]

    no

    you need to make it

    [esi ics_calendar ttl="0"]

    Best regards,

    Thread Starter t0t0r0555

    (@t0t0r0555)

    Yes, tried that [esi ics_calendar ttl="0"] first and it doesn’t work. The calendar still appear as plain text ?? That’s why I tried the other one… but the other one also doesn’t work (still cache my calendar)

    Plugin Support qtwrk

    (@qtwrk)

    are you sure you on the latest dev branch ?

    please provide the report number again

    Thread Starter t0t0r0555

    (@t0t0r0555)

    @qtwrk Yes, I’m sure. Report number is: PCKGETMD

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘How to not cache calendar only?’ is closed to new replies.