My [How To Speed Up Safari] Post #2
I'm back with another handy tip on how to speed up Safari. Now this one really works. I've tried it and I'm noticing it immediately. This tip comes courtesy of Amdahl on the macrumors forum. (His post on it here). Its a little more involved this one and requires you to mess around with the terminal a bit more. But its worth it I assure you. Just make sure you follow the instructions line by line and cut&paste the instructions if you're not sure of it.
Manually defragging your Safari cache is often a big speed win on 10.5. In Terminal, with Safari closed, run the following lines. If you have other user accounts, log out and back in as each account and repeat:
PLEASE NOTE :::: THE SINGLE QUOTES on THECACHE line are from the quote on the tilde(~) key to the left of the number 1 key. You must use the correct quote! The double quotes around Cache.db are the usual double quote from pressing Shift with the key to the immediate left of your Return/Enter key. Or, just cut & paste!
cd ~/Library/Caches/com.apple.Safari
cp -Rp Cache.db Cache.db2
mv Cache.db2 Cache.db
cd /private/var/folders
THECACHE=`find . -iname "Cache.db" |grep Safari|head -n1`
cp -Rp $THECACHE ~/Cache.db2
mv ~/Cache.db2 $THECACHE
You'll get some permission denied from find. Don't mind them.
ONLY FOR 10.5! Safari on 10.4 has a different cache structure.
Credit Amdahl
0 pseudo-code(s):
Post a Comment