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
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
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