Great tip I just came across - you can use sqlite3 to optimize all of Firefox's sqlite files in each user's profile directory. The script below cleans out any and all garbage accumulated in those files, making the browser quicker:
- make sure sqlite3 is installed on your distro
- locate and backup the home .mozilla directory for each user
- create a /usr/local/bin/firefox-optimizer script including this:
Code:
#!/bin/bash
killall firefox
mkdir -p /tmp/$HOME
tar cvf /tmp/$HOME/mozilla.tar $HOME/.mozilla
find $HOME/.mozilla/ \( -name "*.sqlite" \) -exec sqlite3 {} "vacuum" \;
- chmod 555 /usr/local/bin/firefox-optimizer
- run as root and then as each user (option, rewrite for one global use if you like)