Browser.cache.memory.capacity
Background
When a page is loaded, it can be cached so it doesn't need to be rerendered to be redisplayed. This preference controls the maximum amount of memory to use for caching decoded images and chrome (application user interface elements).
Possible values and their effects
-1
Automatically decide the maximum memory to use to cache decoded images and chrome based on the total amount of RAM. (Default in all but Thunderbird and Minimo)
RAM | Cache |
---|---|
32MB | 2,048KB |
64MB | 4,096KB |
128MB | 8,192KB |
256MB | 14,336KB |
512MB | 22,528KB |
1GB | 32,768KB |
2GB | 45,056KB |
4GB | 59,392KB |
0
Do not cache decoded images and chrome in memory.
Any positive integer
Maximum amount of memory in KB to use to cache decoded images and chrome. 1MB = 1024KB. (Thunderbird default: 4096. Minimo default: 256)
Caveats
- browser.cache.memory.enable must be true for this preference to take effect.
- Lowering this value causes less memory to be used but also increases the load time of previously visited pages and dialogs. Raising it has the opposite effect.
Recommended settings
Users who are having problems with memory consumption can try setting the value to something lower than specified in the table above to lower memory consumption. Users who have no problems with memory should leave it at -1.
First checked in
Has an effect in
- Netscape (all versions since 6.1)
- Mozilla Suite (all versions since 0.9.1)
- Phoenix (all versions)
- Firebird (all versions)
- Firefox (all versions)
- Thunderbird (all versions)
- Minimo (all versions)
- Seamonkey (all versions)
Related bugs
- Bug 85054 - Hard Drive grinds when disk cache set to zero.
- Bug 105344 - Memory cache pref should be a percentage of physical RAM
- Bug 204164 - Calculating memory cache as percentage of physical memory may not be such a good idea
- Bug 296538 - limit the memory cache to a reasonable value