Closed RakeshChotkan closed 9 months ago
The script itself does not store any data about the calendars. There are also no indications that UrlFetchApp, used to retrieve the source files, uses any kind of caching.
What happens if you set up a new copy of the script any sync the same url?
Thank you jonas0b1011001 for your quick response. I am also a developer and I was 100% sure I wasn't doing anything wrong and it isn't a flaw of the script.
After further investigation I came to the conclusion that Google itself was keeping the file in cache. Initially I was storing the updated file on Wordpress (in a subdirectory), but the website itself allows to keep a cache I think. After your response I also tried an another instance but with the same issue. Then I stored the file on another server and when the file is updated now, the changes are captured immediately.
So it took me quite a lot of hours to figure it out, but for everyone else. If your updated file doesn't change the events/calendar, just change the location of the ics file because there is a change Google kept it cached on their own servers.
The problem
The script doesn't fetch an updated version of the ics url. I have an own domain where I upload the ICS file. First I uploaded a file with 7 events. The first time when the script runs, it fetches the 7 events and add it succesfully the events to the specified calendar.
When I upload an ICS file with 13 events, which are in the future, the script still fetches 7 events instead of the 13 events. I am sure the filename of the new upload file is the same because when I open the url by myself in the browser it opens the updated file.
Below are the settings of my configuration.
I am 100% sure I have uploaded the right file and checked everything more than 10 times, but it looks like it holding the first file in chache or something because it doesn't fetch the updated file.
Version of GAS-ICS-Sync
5.8
Additional information & file uploads
No response