• Hi,

    Our ICS Calendar is on our front page so I don’t want to exclude the entire page from caching. Here are the options we’re using:

    view="month" ajax="true" attach="true" columnlabels="full" combinemultiday="true" compact="false" feedlabel="Comité RMC|Rencontres RMC|événements éducation" linktitles="true" location="true" monthnav="both" pastdays="95" color="#DD5B2C #8AB14E #5984EF" description="true" eventdesc="true" format="Y-m-d" weeknumbers="true" extendmultiday="false" reload="true"

    Since we’re using ajax=”true” and reload=”true”, I had hoped to escape all caching issues. This morning our user contacted me and said that the calendar was not showing up (again). I first cleared the ICS cache but that didn’t change anything. Then in W3 Total Cache I clicked on the Clear All Caches button and the calendar reappeared.

    Before I cleared the W3 Total Cache, with the ajax=”true”, I do see the spinning loader icon but then it just shows a “1” where the calendar should be. So we’re not even getting a “stale” calendar when this happens. Don’t know if that’s indicative of anything or not.

    The page is built using Divi, with the ICS shortcode in a Divi Text module.

    We’re also using PHP OPCache, and the Async Javascript plugin where I’m “deferring” Javascript.

    Anyway, it seems that you’re doing all you can to make sure that calendars don’t get cached. I’m just wondering if you have any insight as to where I might turn next to try and eliminate this problem from recurring.

    Thanks!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author room34

    (@room34)

    The “1” is a known issue with using the AJAX option. It’s on the to-do list to fix but I haven’t been able to duplicate it reliably in my test setups.

    Generally I would not recommend setting reload="1" when using AJAX though because it will force ICS Calendar to re-query the source server on every single page load. It’s possible this combination is the issue. Let ICS Calendar do its own caching by setting that to at least 60 (one minute), although unless your calendar is changing a lot, I’d go with 600 (10 minutes).

    Thread Starter dleigh

    (@dleigh)

    Helpful info. Thanks. We’ll remove the reload=”1″ and see how it goes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calendar getting cached by W3 Total Cache’ is closed to new replies.