cancel
Showing results for 
Search instead for 
Did you mean: 

Can't get browser.cache.disk.parent_directory to work

SOLVED
Highlighted
New Contributor

Can't get browser.cache.disk.parent_directory to work

I've tried to use the browser.cache.disk.parent_directory method to move my disk cache, but this isn't working.

Details:

I did a clean install of Firefox 22 on Vista, and then, following instructions, went into about:config, created the browser.cache.disk.parent_directory key, and gave it the value of a directory I had created.

I then visited many different sites (no, not in private browsing mode), and noticed nothing was being saved there. In fact, the new directory is absolutely empty (no hidden folders either).

Looking at about:cache, I am informed:

Offline cache device Number of entries: 0 Maximum storage size: 512000 KiB Storage in use: 0 KiB Cache Directory: C:\Users\XXX\AppData\Local\Mozilla\Firefox\Profiles\XXX.default\OfflineCache

And yes, browser.cache.disk.enable is set to true.

This is true regardless of whether I am using my admin account with no extensions or my standard user account with several extensions.

Advice?

1 ACCEPTED SOLUTION

Accepted Solutions
New Contributor

Re: Can't get browser.cache.disk.parent_directory to work

Final entry:

Almost by coincidence, I found the following information from cor-el: "In case you are using 'Clear history when Firefox closes': do not clear Cache because Firefox will disable the disk cache in such a case".

There are some use-cases for which this is obviously appropriate behavior, but for this to be the default (and perhaps unchangeable) policy is baffling to me.

Anyhow, my original question seems answered, even if I highly dislike the answer: regardless of where your cache is located, if you choose to automatically clear your cache when Firefox closes, Firefox will completely disable the cache.

Thanks to cor-el and to the responders on this thread.

15 REPLIES
All Star Contributor

Re: Can't get browser.cache.disk.parent_directory to work

I noticed that the cache saved to the hard drive was the offline cache unless I set its size to 0. That forced the use of the disk cache. I also had to enable both caches (disk & offline) for anything to be saved to the hard drive at all. That was several Firefox versions ago, but maybe the same setup is still necessary.

Support Forum Moderator

Re: Can't get browser.cache.disk.parent_directory to work

New Contributor

Re: Can't get browser.cache.disk.parent_directory to work

Thanks for the response, finitarry. Unfortunately, while it's the kind of esoteric procedure that seems promising, it didn't work for me. When I tried it, the only change was that about:cache displayed only the memory cache and nothing else.

New Contributor

Re: Can't get browser.cache.disk.parent_directory to work

the-edmeister, I carefully read the material in your link before making the changes, and then again before posting this question, and yet again now. I hate to be snide, but can you point out what there is in this link that addresses my question? (And yes, browser.cache.disk.capacity is obviously set to a positive value.)

If it helps, I'm attaching a screencap from about:config.

2013-06-29-15-07-36-6ff958.png
Support Forum Moderator

Re: Can't get browser.cache.disk.parent_directory to work

It doesn't directly address your question, which is why I said - See if this helps you. You didn't mention using that KB page as a reference for that change.

I trust that you know changes made in about:config are per Profile, so that the change needs to be made in all user accounts - admin and standard.

How about a screenshot of the about:cache page?

Or, on the about:cache page does the Disk cache device show the T:\firefox path?

New Contributor

Re: Can't get browser.cache.disk.parent_directory to work

I've been switching back and forth between the accounts, making changes in both, testing both, and double-checking both.

2013-06-29-15-51-38-75d73b.png
Support Forum Moderator

Re: Can't get browser.cache.disk.parent_directory to work

Disk cache device is missing. It should appear in about:cache and I can't see a reason it is missing. Did you manually create that T:\firefox folder? I vaguely recall having to create the folder specified in the "Path".


My cache becomes relocated out of the \Local\ path as a result of having my Profile not "relative" (to the profiles.ini file), see my screenshots.

2013-06-29-16-41-40-5c8cca.png 2013-06-29-16-56-17-492116.png
New Contributor

Re: Can't get browser.cache.disk.parent_directory to work

Disk cache device is missing. It should appear in about:cache and I can't see a reason it is missing."

Me neither. :-)

Yes, I manually created the new folder.

I'm not sure I understand your second paragraph.

Support Forum Moderator

Re: Can't get browser.cache.disk.parent_directory to work

Something is wrong, you should have a Disk Cache Device entry - it's like it is disabled, but appears to be enabled in your about:config screenshot.

My advice is to create a new Profile and do those mods again in a fresh Profile.