Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Revised script from Dan...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Revised script from Dan...
Authored by: robg on May 24, '02 12:39:26AM
Dan K. submitted a revised script:
#!/bin/sh

# Dan's CacheKiller v2.0
#
#
# This shell script is public domain
# software and is freely distributable
# without any restrictions whatsoever.
#
# NEW AND IMPROVED!
# Thanks to all of the readers at
# MacOSXHints.com for their input,
# suggestions, and ideas.

# this script that the user has already
# authenticated before loading it

# scrub the system-level cache files

echo -n "Cleaning out Cache files..."
rm -f -PR /System/Library/Caches/*
rm -f -PR /Users/user_name/Library/Caches/*
rm -f -PR /Library/Caches/*
echo "done!"

# scrub IE's cache files
echo -n "Erasing IE fingerprints..."
rm -f -P /Users/user_name/Library/Preferences/Explorer/History.html
rm -f -P /Users/user_name/Library/Preferences/Explorer/"Download Cache"
echo "done!"


[ Reply to This | # ]
Revised script from Dan...
Authored by: hembeck on Dec 05, '02 03:24:08PM
Hello,

Can you explain this comment:

# this script that the user has already
# authenticated before loading it


I'm not following what needs to be done here in order for the script to work.

Thanks,
Fernando


[ Reply to This | # ]
Manual Script...
Authored by: josephaw on Dec 07, '04 09:41:32AM

My G5 was slowing down more and more at boot until today it took 2 minutes, it had to be fixed.
Using the above scripts I created this text file that I can copy and paste into Terminal since I like to run them manually.

sudo rm -fr /System/Library/Caches/*
sudo rm -fr /Library/Caches/*
sudo rm -fr ~/Library/Caches/*

After rebooting it was still kind of slow, but better, but I figured it was recreating the caches, so after the second reboot the computer returned to it's old speedy self. Problem fixed!
I noticed it had some other effects like resetting the Alow File to OPEN in Application first time warning window in the finder, so I have to click once to allow again for each type of file. But hey, it's probably good to reset things like that from time to time. Who knows what other quirky problems this probably fixed too.
Thanks all for the code.
Joe



[ Reply to This | # ]