You are here

Where's the cache?

2 posts / 0 new
Last post
fergus
Offline
Last seen: 4 years 9 months ago
Joined: 2006-12-17 14:24
Where's the cache?

Just started using Firefox again after a while: portable v.64.0.2.
In the past after exiting I have successfully accessed the Firefox cache using Nirsoft's "MZ CacheViewer" which is available at
http://www.nirsoft.net/utils/mozilla_cache_viewer.html
(It's a really good utility, but BTW does PortableApps have an equivalent?)
For ages (years) the Firefox cache was located at Data\profile\cache2.
Now if I point MZ CacheViewer to this location it seems to be empty. And:
If I try "about:cache" within Firefox I get this advice:
Storage disk location: none, only stored in memory
That's happened before too, but I cannot find the route within Options to set a disk cache (up to say 1GB or whatever).
So:
Question 1: within Firefox can I set the cache to disk rather than memory?
Question 2: if Yes, where will be the default location of the cache?
Thank you!
Fergus

Abraxian
Offline
Last seen: 15 hours 17 min ago
Joined: 2010-08-18 10:40
To Direct the Cache to Disk

To direct the cache to disk just modify the procedures mentioned here to suit what you want to achieve: https://thetechjournal.com/how-to/tutorial-how-to-move-your-mozilla-fire... -- study it for a few minutes and you'll get the idea.

However, if you don't want the cache to be written to Firefox Portable's default location for the disk cache then in about:config search for the preference browser.cache.disk.parent_directory. If the preference does not exist then create it as a new string. To do so right-click in an blank area of the about:config preferences display and select new > string For the new string give it the preference name browser.cache.disk.parent_directory Once that is done enter the path for the cache. So, for example, let's say you wanted the cache on partition "W:\" then you might give the following path: W:\\FIREFOX\\ (the path needs double back-slashes, not single). Firefox will now create the disk cache in the location you specified (in this example that would be W:\\FIREFOX\\cache2 (but you shouldn't specify the cache2 part of that path).

Just experiment with this a bit and you will get it working fine. That said, I don't see the value of putting the cache to disk on a portable Firefox setup. Also in a fully installed setup this would be questionable from the point of view of hits to disk as the cache gets built up over the course of a day of browsing. For my fully installed Firefox I do have the cache set to write to disk. However, the disk I have it write to is a ramdisk -- so no cache content ever gets written to my SSD. Why do I do this, after all writing the cache data into memory would still prevent writes to SSD? Well I just love at the end of a day looking in the cache folder just before I shutdown Firefox and watching the several thousand (yes several thousand) potential writes to the SSD just vanish when I shutdown Firefox. It's my idea of fun but it does serve a serious purpose -- reduce writes to SSD. If I didn't enjoy that so much then I would just have Firefox, installed or portable, write its cache data into memory.

EDIT: For default install of Firefox Portable, and with disk cache enabled, the default cache location would be: [WhateverPath]\FirefoxPortable\Data\profile\cache2, Do keep in mind that if you specify your own path to the cache then you can seriously break the portable nature of Firefox Portable. So best advice, if you really do want to write the cache data to disk, is not to specify an alternative path for the cache -- just leave things as they are.

Use Portable Apps on both Flash Drive and HDD/SSD.

Log in or register to post comments