Android Community Forums - View Single Post - Problems moving cache
View Single Post
  #5  
Old 01-02-2009, 01:43 AM
rynosaur's Avatar
rynosaur rynosaur is offline
rynosaur is looking for a Dev ADP1 back cover!
Posting is my life!
 
Join Date: Oct 2008
Location: Dekalb, IL
Posts: 2,019
rynosaur is on a distinguished road
Send a message via AIM to rynosaur Send a message via Yahoo to rynosaur
Default Re: Problems moving cache

The instructions for moving the browser cache are faulty on AC. This is the proper symlink command (the last command):

ln -s /sdcard/cache/webviewCache webviewCache

the original AC post omits the "cache" subdirectory that you have to set up in /sdcard, which will lead Android to send your browser cache files to some dark, unknown place Most likely back to device memory, but I dunno.


the "cache" subdirectory contains marketCache, webviewCache, and streetCache . . . you can add app caches to this directory on the sdcard if you like. Others have done it with success.

I improvise and do the browser cache this way, and it actually seems to work better at minimizing the total space Android Browser will ever take in device RAM:

su
cd /data/data/com.android.browser
rm -R cache
ln -s /sdcard/cache cache

so with this method the OS will look to the cache subdirectory and create webviewCache in the sdcard/cache, as far as I can tell this way is simpler and works better, but I'm no linux genius, I could be wrong.
Reply With Quote