Closed Bug 1257404 Opened 9 years ago Closed 6 years ago

Changing browser.cache.disk.capacity does reset it to 358400 after a few seconds

Categories

(Firefox :: Settings UI, defect)

45 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: sworddragon2, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 Build ID: 20160304115459 Steps to reproduce: 1. Go to about:config and set browser.cache.disk.capacity to a value higher as 358400 (for example 358401). 2. Wait a few seconds. Actual results: In about:config browser.cache.disk.capacity got reset to 358400. Expected results: browser.cache.disk.capacity should keep the set value. Additional information: This bug triggers also shortly after creating a new profile. In my case on a new profile browser.cache.disk.capacity is 1048576 but gets then set to 358400 after a few seconds.
Edit: Also I'm noticing that lower values (for example by resetting browser.cache.disk.capacity (applies 256000)) do reset the value to 358400 after a few seconds.
Summary: Higher values as 358400 for browser.cache.disk.capacity do reset to 358400 → Changing browser.cache.disk.capacity does reset it to 358400 after a few seconds
Component: Untriaged → Preferences
For me, 350 MB is far too much -- I want it down to 50 MB, which should be its default value according to http://kb.mozillazine.org/Browser.cache.disk.capacity. Hmmm... It seems to be holding the value 51200 now for more than five minutes already. Maybe the value needs to be a multiple of 512 or 1024 or something?
And as soon as I submitted the comment, the value jumped to 358400 again. :|
You have to change "browser.cache.disk.smart_size.enabled" to FALSE and then "browser.cache.disk.capacity" will stick to your custom value.
Indeed, setting browser.cache.disk.smart_size.enabled to false does not change automatically browser.cache.disk.capacity anymore. So it appears browser.cache.disk.smart_size.enabled set to true is just some sort of automatic cache management and all is working as intended.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.