(Mac OS X) Setting Cache Directory Location

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

(Mac OS X) Setting Cache Directory Location

Post by lucite »

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 -
User avatar
jcraig
Posts: 1958
Joined: December 6th, 2002, 6:38 pm
Location: Plainfield, IL USA
Contact:

Post by jcraig »

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 by lucite »

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.
User avatar
jcraig
Posts: 1958
Joined: December 6th, 2002, 6:38 pm
Location: Plainfield, IL USA
Contact:

Post by jcraig »

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.
User avatar
dacovale
Posts: 1106
Joined: March 19th, 2003, 6:14 am
Location: Sweden
Contact:

Post by dacovale »

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 by Guest »

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!
Post Reply