Move Chromium Cache to RAM
Create RAM disk and set it to run at startup, make chromium use it instead of the SSD.
sudo gedit /etc/fstab
Add the following line to the bottom of the text file that opens but BE CAREFUL – do not touch, edit or enter ANYTHING else:
tmpfs /media/ramdisk tmpfs defaults,noatime,mode=1777 0 0, size=2048m
Once entered save and exit.
Head back to the terminal window, this time enter the following: –
sudo mkdir /media/ramdisk
create the script.
sudo nano ~/.chromecache
add this inside the textfile
#!/bin/sh
#for the google chrome cache
/bin/rm ~/.cache/google-chrome
/bin/mkdir /media/ramdisk/google-chrome
/bin/ln -s /media/ramdisk/google-chrome ~/.cache/google-chrome
#for the chromium cache
/bin/rm -r ~/.cache/chromium
/bin/mkdir /media/ramdisk/chromium
/bin/ln -s /media/ramdisk/chromium ~/.cache
Save and exit.
Make the script executable by issuing:
sudo chmod +x ~/.chromecache
Now go to Preferences > Start-up Applications and add a new entry using the following field data: –Name: Chrome Cache
command: ~/.chromecache
comment: moving chrome browser cache to ramdisk
There is another fsckin cache!
Well more than one more, but this one is quite big.
/home/andy/.config/chromium/Default/Service Worker/CacheStorage
Try making a link to it and moving it to the existing RAM disk. Fingers crossed… nope, that will only work until reboot, need to adapt the script to do it each startup.
Browsers are a complete bloated mess. And after 34 years they still can’t select text properly.