Browser.cache.disk.parent directory: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(added SeaMonkey)
m (→‎Related bugs: Bug 216204 added for Mac)
 
(9 intermediate revisions by 2 users not shown)
Line 2: Line 2:


==Background==
==Background==
Mozilla Suite and Firefox store the disk cache in the "Cache" directory located in the [[profile folder]] or, in Firefox 1.5 and SeaMonkey 1.0, in the "profile temp directory" [https://bugzilla.mozilla.org/show_bug.cgi?id=291033].  The Cache directory location can be viewed in [[About protocol links | about:cache]].   
Mozilla Suite and Firefox store the disk cache in the "Cache" directory located in the [[profile folder]] or, in SeaMonkey and Firefox 1.5 and above, in the "profile temp directory" [https://bugzilla.mozilla.org/show_bug.cgi?id=291033].  The Cache directory location can be viewed in [[About protocol links | about:cache]].   


The Cache location can be changed by adding the "browser.cache.disk.parent_directory" preference and entering a new path (Note: In the past, this was specified in the "browser.cache.disk.directory" preference and before that,  "browser.newcache.directory" and "browser.cache.directory" behaved similarly.)   
The Cache location can be changed by adding the "browser.cache.disk.parent_directory" preference and entering a folder path(In the past, this was specified in the "browser.cache.disk.directory" preference and before that,  "browser.newcache.directory" and "browser.cache.directory" behaved similarly.)  Once this preference is specified, a new directory named “Cache” will be created at the path you set,  upon browser restart.


In Windows, the path separator must be two backslashes (e.g. "C:\\Path\\To\\Parent\\Folder") if the "browser.cache.disk.parent_directory"  value is being set in the prefs.js or [[user.js file]] instead of [[about:config]]. Once this preference is specified, a new directory named “Cache” will be created at the path you set.
Note: In Windows, if the "browser.cache.disk.parent_directory"  value is being set in the prefs.js or [[user.js file]] instead of [[about:config]], the path separator must be two backslashes (e.g., "C:\\Path\\To\\Parent").


==Possible values and their effects==
==Possible values and their effects==
Line 17: Line 17:
==UI==
==UI==
===Mozilla Suite and SeaMonkey===
===Mozilla Suite and SeaMonkey===
A “Choose Folder” button is available under “Edit → Preferences → Advanced → Cache.  
A “Choose Folder” button is available under “[[Menu differences in Windows, Linux, and Mac|Edit → Preferences]] → Advanced → Cache”.
 
==Recommended settings==
==Recommended settings==
A fast, local hard disk is the best choice for storing your disk cache files. If you’re concerned about privacy, you may want to look into creating a [http://en.wikipedia.org/wiki/RAM_disk RAM disk] and using that as the location for your cache.
A fast, local hard disk is the best choice for storing your disk cache files. If you’re concerned about privacy, you may want to look into creating a [http://en.wikipedia.org/wiki/RAM_disk RAM disk] and using that as the location for your cache.
Line 31: Line 32:
* Mozilla Firefox (all versions)
* Mozilla Firefox (all versions)
* Camino (all versions)
* Camino (all versions)


==Related bugs==
==Related bugs==
* [https://bugzilla.mozilla.org/show_bug.cgi?id=78480 Bug 78480] - Can’t seem to set the cache directory as of 30042001 build
* [https://bugzilla.mozilla.org/show_bug.cgi?id=74085 Bug 74085 - [Win] Disk cache should use local directory (CSIDL_LOCAL_APPDATA)]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=319799 Bug 319799] - Separate volatile and personal data in profile
* [https://bugzilla.mozilla.org/show_bug.cgi?id=78480 Bug 78480 - Can’t seem to set the cache directory as of 30042001 build]
*[https://bugzilla.mozilla.org/show_bug.cgi?id=216204  Bug 216204 -  Mac OS X disk cache should use ~/Library/Cache]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=239254 Bug 239254 - [Linux] Support disk cache on a local path]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=291033 Bug 291033 - Enable support for profile temp directory on local filesystem]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=373512 Bug 373512 – 'Local Settings/x.y' directory not created/used immediately after account creation when using '-profilemanager', for XPC.mfl/XUL.mfl/Cache/...]


==Related preferences==
==Related preferences==
Line 42: Line 46:
* [[browser.cache.disk_cache_ssl]]
* [[browser.cache.disk_cache_ssl]]


==External links==
* [http://www.mozilla.org/support/firefox/tips#oth_cache Firefox Help: Tips & Tricks - Specify where to store the cache]


[[Category:Preferences]]
[[Category:Preferences]]

Latest revision as of 11:57, 13 November 2009

Background

Mozilla Suite and Firefox store the disk cache in the "Cache" directory located in the profile folder or, in SeaMonkey and Firefox 1.5 and above, in the "profile temp directory" [1]. The Cache directory location can be viewed in about:cache.

The Cache location can be changed by adding the "browser.cache.disk.parent_directory" preference and entering a folder path. (In the past, this was specified in the "browser.cache.disk.directory" preference and before that, "browser.newcache.directory" and "browser.cache.directory" behaved similarly.) Once this preference is specified, a new directory named “Cache” will be created at the path you set, upon browser restart.

Note: In Windows, if the "browser.cache.disk.parent_directory" value is being set in the prefs.js or user.js file instead of about:config, the path separator must be two backslashes (e.g., "C:\\Path\\To\\Parent").

Possible values and their effects

Any path with full write permissions by the current user is considered valid. As mentioned above, the actual disk cache contents will be stored in a directory beneath this path.

Caveats

  • The disk cache must be turned on for this preference to have an effect.
  • The disk cache’s capacity must be set to a positive integer for any files to be written to the specified directory.

UI

Mozilla Suite and SeaMonkey

A “Choose Folder” button is available under “Edit → Preferences → Advanced → Cache”.

Recommended settings

A fast, local hard disk is the best choice for storing your disk cache files. If you’re concerned about privacy, you may want to look into creating a RAM disk and using that as the location for your cache.

First checked in

2001-09-19 by Gordon Sheridan

Has an effect in

  • Mozilla Suite (all versions since 0.9.5)
  • SeaMonkey (all versions)
  • Mozilla Phoenix (all versions)
  • Mozilla Firebird (all versions)
  • Mozilla Firefox (all versions)
  • Camino (all versions)

Related bugs

Related preferences