Fixing the iCal “Calendar Cache” Bug in Leopard

There is this annoying bug in Leopard's iCal called the "calendar cache" bug or the "stuck" bug. It's an issue with iCalendar feeds. Sometimes when an event is edited or modified in an iCalendar feed, Apple iCal doesn't properly update the event.

This is a problem for many web based applications (like Heap CRM) that provide iCalendar feeds. The reason this is sometimes called the "calendar cache" bug is because this problem is all about the "calendar cache." Apple iCal has cached the event, it just doesn't think there is any reason to look to see if it has been updated. By simply deleting the calendar calendar cache, it forces iCal to update the event.

Obviously, to delete the calendar cache on a regular schedule by hand makes no practical sense. So I wrote what I have to assume is simplest Automator script ever written.

Automator to Fix iCal Bug

I also have this saved as an application, so that I can run it in the background. What I personally do is have the application run every time I login. So at least once a day the iCal feeds are forced to update. You can run it as many times as you like, or assign it to a schedule.

iCal Fix (Application)
iCal Fix (Automator Workflow)

5 Responses to “Fixing the iCal “Calendar Cache” Bug in Leopard”

  1. Michael Says:

    I tried this and it said updating my calendars and then deleting several of the how do I undo this?

  2. Ben Says:

    The automator script only deletes the calendar cache, not any of the calendars. Once it does that, it will have to re-download the events for all of your subscribed calendars. If you want to force it to do that right away go to Calendar->Refresh All

    Also the automator script should only be run when iCal is closed.

  3. Ben Says:

    This issue doesn't seem to exist in Snow Leopard, so those upgrading should remove this script.

  4. Pedro Says:

    Ran the application and still the same. Wich files should be deleted from the library>calendars folder ?
    I deleted, presumably, the two blank-iconed files. Was I right ?


  5. Ben Says:

    The only files that should be deleted are those with the name "Calendar Cache"; however this bug is now resolved starting in Snow Leopard, so if you have something going on where you have un-updated calendars, it probably isn't this issue.

Leave a Reply