• jvdstoel

    (@jvdstoel)


    Hello, when I create a new google calendar item, it is only shown on my website after I clear the cache manually in the plugin. I have installed LiteSpeed on my website, where I have switch off the cache for the agenda page. This sometimes works, but often not.

    How can I solve this issue?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support john

    (@johnweru)

    Hi there,

    Thanks for reaching out.

    About the query here, what you are seeing is expected behavior in the Simple Calendar plugin. When a new event is added in Google Calendar, the plugin does not pull and display it instantly in real time. Instead, it uses a cached version of the calendar data to improve performance. Due to this caching mechanism, newly added events may take some time to appear on your website, or they will only show after the next scheduled refresh. You can adjust the default refresh interval from the Advanced tab in the calendar settings if you wish to modify this period.
    Manually clearing the calendar cache as outlined here forces an immediate update, which is why you are seeing the event after doing so. I would suggest checking out the faq here for details about this.

    I hope this information helps.

    Kind Regards

    Thread Starter jvdstoel

    (@jvdstoel)

    This definitely helps! Thanks for this answer.

    I have another question: I am writing a script to fill the agenda. It would be nice that after I have updated an agenda item, I am able to clear the cache through a URL-call from a Google Workspace script, so that I don’t need to log into wordpress. How can I do this?

    Kind regards, Johan

    Plugin Support john

    (@johnweru)

    Hi there,

    Thanks for staying in touch with us.

    About your question here, unfortunately the plugin does not provide functionality to clear the cache via external requests. Cache clearing is intentionally handled within the WordPress admin for security reasons, and there isn’t a public endpoint available for this.

    Implementing such functionality would require custom development, including creating a secure endpoint to handle the request.

    I hope this helps.

    Kind Regards

    Thread Starter jvdstoel

    (@jvdstoel)

    Thanks a lot for this clarification.

    I am not happy with it, but I understand. Are you aware of a plugin who doesn’t have these issues? I really don’t like the fact that I have to wait a certain before new or updated agenda items are visibible on my website.

    Kind regards, Johan

    Plugin Support john

    (@johnweru)

    Hi there,

    Thanks for staying in touch with us.

    In this case, I do understand your frustration here. However, the approach we use in our plugin helps prevent rate limits and improves overall site performance. At the moment, I’m not aware of a plugin that fully avoids caching while still remaining reliable and compliant with Google’s API limits.

    I’m sorry I couldn’t provide a more ideal solution here, but I hope this helps clarify things.

    Kind Regards

    Plugin Support john

    (@johnweru)

    Hi there,

    Just a quick question around this.

    We are considering providing a URL to clear cache. Do you mind letting us know how you plan to use it should this be a feature that we provide in the future.
    Your input will help us better understand the use case and ensure the solution fits your needs.

    I look forward to your reply.
    Kind Regards

    Thread Starter jvdstoel

    (@jvdstoel)

    Hi John, this is a great idea!

    I’m looking to streamline our church’s liturgy workflow. Currently, several people collaborate via email, and every Saturday evening, a volunteer manually copies the final text onto our website: schootsekerk.nl/calendar/liturgie/.

    To automate this, I am developing a Google Apps Script within our Google Workspace environment. The goal is a “one-click” solution that, upon approval, automatically distributes the liturgy to the team and publishes it directly to the site.

    The Current Obstacle: While I’ve started the implementation, I haven’t been able to finish the script due to time constraints. Specifically, I need to solve the cache-clearing issue we discussed. If the cache isn’t cleared automatically when the script runs, the updates don’t appear live for our visitors.

    If you could help implement a solution that triggers a cache refresh directly from the Apps Script environment, it would be a massive help to our team and likely many others facing similar hurdles!

    Kind regards, Johan

    Plugin Support john

    (@johnweru)

    Hi Johan,

    Thanks for sharing this information.

    In this case, I have requested our lead team to review this so they can evaluate the feasibility of introducing a secure way to clear the cache via a URL. We will keep you posted if there are any updates or progress on this.

    Thanks again for your input.

    Kind Regards

    Plugin Support john

    (@johnweru)

    Hi there,

    I hope that you are fine.

    We have gone ahead and included this feature within our Simple Calendar Google Calendar Pro addon. You can also refer to the documentation guide here for more details about it.

    Should you have further questions about this feature, since this feature is now part of the Pro add-on, we recommend reaching out to our support team here.

    We appreciate your patience.

    Kind Regards

Viewing 9 replies - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.