• Resolved dvalleq

    (@dvalleq)


    Hi,

    I’m experiencing some inconsistent loading issues with the plugin and AJAX option.

    I encountered an “AJAX request failed” message in the console. This seems to occur for “new” users or in Private mode. After a hard refresh, it loads, but the problem reoccurs when I start a new private session.

    If I disable the AJAX option, it loads, but the calendar remains stuck in the cache indefinitely, even with very small cache setting.

    If I save again the page in WordPress, problem is solved for about a day. So, I bet there is some cache problem here (since I reset everything this morning, page should work fine on May 16, 2024).

    I’ve attempted to use the “Use legacy feed request method” option, but without success.

    The website is hosted on a WP Engine server with Cloudflare and APO plugins. Everything is up to date.

    Any suggestions?

    Thanks for your help!

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

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

    (@room34)

    This issue is most likely related to the Cloudflare / APO plugins. Advanced caching techniques can sometimes interfere with the calendar. A few things to try:

    1. Be sure your ICS Calendar shortcode has reload="1" so ICS Calendar doesn’t use its own caching.
    2. Investigate the settings for these other plugins to see if they offer any options to prevent caching AJAX output, like allowing you to enter paths not to cache. The one you’d want to include is:
      wp-admin/admin-ajax.php
    Thread Starter dvalleq

    (@dvalleq)

    Thanks for your fast response.

    Disabling cache on admin-ajax.php is not an option for our website. I’ll try the reload=”1″ and check if there is any improvement tomorrow.

    Is there anyway to load the calendar from a JS file instead of using the shortcode?

    Thanks

    Plugin Author room34

    (@room34)

    Is it that your caching plugin forces AJAX requests to be cached, or that it just doesn’t offer any options one way or another?

    AJAX requests should never be cached as far as I know… it kind of defeats the purpose.

    The shortcode is the only way to insert a calendar in the page. The AJAX request is the way of dynamically loading the calendar content with JavaScript. If the calendar were in a static JavaScript file, it would definitely get cached on the browser side, which would be much worse.

    Thread Starter dvalleq

    (@dvalleq)

    Sorry, what I meant to write is that all other admin-ajax dynamic contents are functioning well and don’t seem to be cached or affected by Cloudflare. Since our caching setup has been tested and proven, we don’t want to change the settings in Cloudflare. As you mentioned, AJAX content should not be cached…

    This morning, calender is loading. I hope the reload="1" really fix it. I’ll keep watching it for the next days.

    Thanks

    • This reply was modified 2 months, 2 weeks ago by dvalleq.
    Thread Starter dvalleq

    (@dvalleq)

    Still have loading issue 🙁

    Thread Starter dvalleq

    (@dvalleq)

    Will try to remove Cloudflare cache on this page for some days to see if it improve loading.

    Thread Starter dvalleq

    (@dvalleq)

    If it can help other users, changing default “Edge TTL” Cloudflare setting on page where the calendar is showing seem to solve the problem for the last 3 days. I hope this will last.

    Thanks for your help and your plugins Room34.

    • This reply was modified 2 months, 1 week ago by dvalleq.
    Plugin Author room34

    (@room34)

    @dvalleq Thanks for sharing this!

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.