On the link below, you can learn to change the directory of the FF cache.
http://kb.mozillazine.org/Browser.cache.disk.parent_directory
I have made it so, that FF portable (I wan't to minimize the number of writes to the flash disk) uses C://Cache as it's cache directory. Is it possible to make a .bat/NSIS file that will delete the Cache directory when run.
Thanks in advance.
Just disable the cache. If you're going to delete it anyway before you unplug the drive, there's really no need to use it at all. Firefox maintains a RAM cache while its running; what does adding an equally transient disk cache gain you?
The purpose of a disk cache is to cache visited pages across sessions. If you intend to delete the cache directory as soon as you're done with a session, there's absolutely no point in using it.
Actually my experience has show that FF will use the disk cache during a session as well as the RAM cache.
[e.g. If I go back to a page I have not visited in a while that as a lot of images they redraw much slower if disk cache in disabled (this is on a hard drive by the way). I think the RAM cache purges old data during a session and needs to "recache" it again if it can't write to a disk cache]
Tim
Things have got to get better, they can't get worse, or can they?
@Bruce:
Quote: "what does adding an equally transient disk cache gain you?"
It makes FF run faster/smoother on computers with little ram. Plus in general it will lower the ram usage a lot.
Quote: "(...)there's absolutely no point in using it."
As described above I really believe there is a big point in using it... it is rare that computers have a bunch of ram! especially school/educational-places-computers...
I think that it is great that FF have this option (to not only use the ram red.)