Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

supergaia

macrumors member
Original poster
Oct 19, 2017
85
0
italy
hi to all and i'm new

i have an imac and i would like to create a ram disk for chrome and firefox cache

i'm running the last sierra version 10.12.6

i have used a windows laptop with a ram disk and it boost a lot performance
and outside the performance
i would really like to have a ram disk for firefox cache and chrome , and avoid they continue to write on my hard disk
i have used the search menu and i found a topic about Esperance DV but it doesn't support firefox or chrome cache
thanks
 
Last edited:
Hi
but if i want to restore the chrome cache in the default location?

moves the chrome cache to the ram disk
Code:
rm -rf ~/Library/Caches/Google/Chrome/Default 
ln -s /Volumes/ChromeRAM ~/Library/Caches/Google/Chrome/Default
but if i want to stop to use the ram disk and restore the chorme cache location ?
thanks cruisin
 
Then you do the reverse. You can delete the link in finder (has a little arrow) and make a folder named Default, or:
Code:
rm ~/Library/Caches/Google/Chrome/Default
mkdir ~/Library/Caches/Google/Chrome/Default
Or if you don't want to permanently use the ram disk, you can start chrome in terminal with a special command to use the ram disk as cache, and this setting will only hold until you close chrome (need to use terminal every time):
Code:
open /Applications/Google\ Chrome.app –args -user-data-dir=”/Volumes/SSDOSX/ChromeCache/” &
From: https://www.ycptech.com/2011/01/relocating-chromes-cache-to-a-ssd-in-osx/

You can move chrome out of the Application folder so that the LOCATION is easier to type, or type it once and copy/paste the result so that you can just copy the line into terminal.
 
  • Like
Reactions: supergaia
Then you do the reverse. You can delete the link in finder (has a little arrow) and make a folder named Default, or:
Code:
rm ~/Library/Caches/Google/Chrome/Default
mkdir ~/Library/Caches/Google/Chrome/Default
Or if you don't want to permanently use the ram disk, you can start chrome in terminal with a special command to use the ram disk as cache, and this setting will only hold until you close chrome (need to use terminal every time):
Code:
open /Applications/Google\ Chrome.app –args -user-data-dir=”/Volumes/SSDOSX/ChromeCache/” &
From: https://www.ycptech.com/2011/01/relocating-chromes-cache-to-a-ssd-in-osx/

You can move chrome out of the Application folder so that the LOCATION is easier to type, or type it once and copy/paste the result so that you can just copy the line into terminal.
hi cruisin
do you use a ram disk ?
thanks a lot
 
No I do not. The internal SSD of my MacBook is fast enough that I don't feel I would benefit.
 

Note that although the cache is on a different drive Firefox will still save stuff to your profile for session restoring etc.. Although the amount of data is saved can be adjusted in about:config, you cannot disable this I don't think

https://support.mozilla.org/en-US/kb/restore-previous-session#w_when-session-restore-occurs
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.