Saturday, September 4, 2010

Cleaning Google-Chrome's cache

Hi again (This is the last post of the day ;P)

Anyway, this trick is to improve the speed and to keep clean the cache of Google Chrome in Ubuntu.


So, first you have to convert your /tmp folder into a tmpfs system (check it out here).

Chrome store the cache in the folder .cache/google-chrome at $HOME. So the idea is to link cache's folder with the /tmp folder. First you have to delete (or move to another place) the folder google-chrome then make the link.


ln -s /tmp $HOME/.cache/google-chrome 


Now all cache is written in the /tmp folder which, thanks to tmpfs, is allocated in the RAM/swapp memory. After each reboot the cache is deleted.


See you.

Caveat: if you share the computer, your cache could be seen by someone else.

Credits/inspirations:

http://ubuntuforums.org/showthread.php?t=1277711
http://ubuntuforums.org/showthread.php?t=1451839

0 comments: