Skip to main content
Help

Original post by: Arjun Roychowdhury ,

Text:

Okay, here is an update:

a) Apple's support is very disappointing. It was escalated to a higher level and I worked directly with a person (contractor, but @apple.com address) who helped me over one call, assigned a case id and then completely disappeared after that, despite my followups. Maybe he gave up, but this was rather unprofessional considering Apple's reputation.

b) Anyway, left to myself, I had a hunch that Safari was the problem child, because really most of what we do is browse. Naturally, my first instinct led me to keep clearing the caches - both Flash and otherwise. Instead of relying on my doing it manually, I created a LaunchDaemon that would run twice a day and remove everything. My system has since been *much* more stable. I have only rare beach balling issues, but again that may change. I've been observing this good behavior for the past 3-4 weeks.

Here is my script that runs twice a day: (make sure you do a chmod a+x bin/cacheclean.sh)

[Arjun@~]$ cat bin/cacheclean.sh

rm -rf "/Users/Arjun/Library/Preferences/Macromedia/Flash Player/#SharedObjects/"

rm -fr "/Users/Arjun/Library/Caches/com.apple.Safari/Cache.db*"

rm -fr "/Users/Arjun/Library/Caches/com.apple.Safari/fsCachedData/*"

echo Flash and Safari cache last cleaned on `date` > /Users/Arjun/bin/cacheclean.log

Here is the LaunchDaemon plist:

[Arjun@~]$ cat /Library/LaunchDaemons/com.arjun.cacheclean.plist

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>Label</key>

<string>com.arjun.flashcacheclean</string>

<key>ProgramArguments</key>

<array>

<string>/Users/Arjun/bin/cacheclean.sh</string>

</array>

<key>StartInterval</key>

<integer>43200</integer>

</dict>

</plist>

Status:

open