MozillaZine

(Mac OS X) Setting Cache Directory Location

User Help for Mozilla Firefox
lucite
 
Posts: 28
Joined: December 11th, 2003, 10:30 am

Post Posted December 11th, 2003, 10:41 am

Hi -

As per texturizer.net (the main Firebird helpsite), I should be able to set a location for my cache file/directory in this fashion:

// Path to Cache folder:
user_pref("browser.cache.disk.parent_directory","C:\\Path To Cache");


3 Questions:

1. browser.cache.disk.parent_directory does not already appear as a pref. setting in my prefs.js file (or about:config screen) - should I create a user.js file and insert this item in it?

2. If I do create a user.js file, should it only have the cache location line in it, or should I duplicate my prefs.js file and add the line about the cache location?

3. Can you give me an example of how to set the path in Mac OS X - e.g. what form should this take:

/Users/me/blabla/Cache/

or something like:

\/Users\/me\/blabla\/Cache\/

Thanks -

jcraig

User avatar
 
Posts: 1958
Joined: December 6th, 2002, 6:38 pm
Location: Plainfield, IL USA

Post Posted December 11th, 2003, 6:27 pm

Why would you want to move your cache from its present location?
There is no dark side of the moon, really. As a matter of fact, it's all dark.

lucite
 
Posts: 28
Joined: December 11th, 2003, 10:30 am

Post Posted December 18th, 2003, 11:53 pm

Because my drive is partitioned, and I don't want the mess of the cache files to be written in my User directory - I have all the messy stuff (swap, scratch & cache files) on a separate partition.

jcraig

User avatar
 
Posts: 1958
Joined: December 6th, 2002, 6:38 pm
Location: Plainfield, IL USA

Post Posted December 19th, 2003, 11:01 am

I don't know how you would change the location, but, if you've got a high speed connection you don't really need to use the cache, and you could disable it in about:config

browser.cache.disc.enable and set it to false
There is no dark side of the moon, really. As a matter of fact, it's all dark.

dacovale

User avatar
 
Posts: 1106
Joined: March 19th, 2003, 6:14 am
Location: Sweden

Post Posted December 19th, 2003, 3:48 pm

1. create a user.js - NEVER edit prefs.js
2. user.js is appended to prefs.js at runtime, so that would be highly unneccesary.
3. have no idea for Mac, but the former looks intuitively right.
I'm nice

Guest
Guest
 

Post Posted December 19th, 2003, 5:29 pm

Actually, it's much easier - it's in the Prefs panel under Cache (in Advanced) - I had been using Firebird which doesn't have it this way, so I thought it would be harder.

Neat!

Return to Firefox Support


Who is online

Users browsing this forum: Bing [Bot] and 9 guests