Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there an extension for Firefox which I could use to schedule so that FF would clear the cache every x minutes or hours?

share|improve this question

2 Answers 2

The Cache Status extension could do the trick for you

share|improve this answer
    
No scheduling though... –  TFM May 8 '11 at 0:48

Afaik, cached files are stored in a Cach-dir, in a hidden dir in your home.

find /home/eidylon/.mozilla/firefox/*.default/Cache/ -mmin +120

would find files there, older than 120 minutes. With a switch -delete you would get rid of all the older files:

find /home/eidylon/.mozilla/firefox/*.default/Cache/ -mmin +120 -delete

but don't hurry, I didn't investigate some files, which seem to be meta-files:

find /home/stefan/.mozilla/firefox/*.default/Cache/ -name "_CACHE_*" -printf "%f\n"
_CACHE_001_
_CACHE_002_
_CACHE_003_
_CACHE_MAP_

maybe they need to be in sync, so you should do an backup, before testing what happens on deletion. The files seem to be partly binary, and not trivial to understand.

If all goes well, you can write the command to your crontab with

crontab -e

for repeated cache-cleanings.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.