ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How can I move my cache and my session from my C: to my F: drive?

  • 8 ردود
  • 1 has this problem
  • 130 views
  • آخر ردّ كتبه cor-el

more options

I think Firefox is writing too much to my S.S.D. and using just the R.A.M. as cache is impossible as the memory rises like crazy. I simply can't multi-tab like prior to 57, but regardless of that, the point is to reduce writes. Due to the crashes because of R.A.M overload, I don't like raising my Session Saving to 20 minutes since the browser can crash in less than that time, let alone I tend to forget my active session when I am doing tons of research.

This topic is merely to move cache nothing else, but giving an explanation to why if anyone is interested.

I think Firefox is writing too much to my S.S.D. and using just the R.A.M. as cache is impossible as the memory rises like crazy. I simply can't multi-tab like prior to 57, but regardless of that, the point is to reduce writes. Due to the crashes because of R.A.M overload, I don't like raising my Session Saving to 20 minutes since the browser can crash in less than that time, let alone I tend to forget my active session when I am doing tons of research. This topic is merely to move cache nothing else, but giving an explanation to why if anyone is interested.

الحل المُختار

I haven't tested this myself, but it's an age-old method.

(0) On your F drive, create a folder in the root called FxCache (if you use another name, substitute it where I have FxCache)

F:\FxCache

(1) Select and copy the following preference name:

browser.cache.disk.parent_directory

(2) In a new tab, type about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(3) In the search box above the list, type or paste parent and pause while the list is filtered

(4) Right-click a blank area of the about:config page, then click New > String

(5) In the small dialog that appears, paste the new preference name and click OK

(6) In the next dialog, type F:\FxCache then click OK

My guess is that Firefox will start using the new location at the next startup. I don't know whether it makes sense to copy over any files.

Does that work?

Read this answer in context 👍 1

All Replies (8)

more options

الحل المُختار

I haven't tested this myself, but it's an age-old method.

(0) On your F drive, create a folder in the root called FxCache (if you use another name, substitute it where I have FxCache)

F:\FxCache

(1) Select and copy the following preference name:

browser.cache.disk.parent_directory

(2) In a new tab, type about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(3) In the search box above the list, type or paste parent and pause while the list is filtered

(4) Right-click a blank area of the about:config page, then click New > String

(5) In the small dialog that appears, paste the new preference name and click OK

(6) In the next dialog, type F:\FxCache then click OK

My guess is that Firefox will start using the new location at the next startup. I don't know whether it makes sense to copy over any files.

Does that work?

more options

Oh, your session history files are not stored in the cache. There is no similar method for changing the session history file location.

more options

Anyway, your choices for the session history write interval are not limited to 15 seconds and 20 minutes. You could choose 60 seconds, which would reduce writes during heavy browsing by 75%. 90 seconds would be almost as safe.

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste sess and pause while the list is filtered

(3) Double-click the browser.sessionstore.interval preference to display a dialog where you can enter the desired value, then click OK

  • 15000 => as often as every 15 seconds (default)
  • 30000 => as often as every 30 seconds
  • 60000 => as often as every 60 seconds
  • 90000 => as often as every 90 seconds
more options

Depending on what you need, adblockers to block cookies as the write more. I set mine up as per this url as do not find need it even with 10+ tabs open at a time : https://www.servethehome.com/firefox-is-eating-your-ssd-here-is-how-to-fix-it/ I would not worry too much about writes as SSD lifespan is large.

more options

jscher2000 said

I haven't tested this myself, but it's an age-old method. (0) On your F drive, create a folder in the root called FxCache (if you use another name, substitute it where I have FxCache) F:\FxCache (1) Select and copy the following preference name: browser.cache.disk.parent_directory (2) In a new tab, type about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk. (3) In the search box above the list, type or paste parent and pause while the list is filtered (4) Right-click a blank area of the about:config page, then click New > String (5) In the small dialog that appears, paste the new preference name and click OK (6) In the next dialog, type F:\FxCache then click OK My guess is that Firefox will start using the new location at the next startup. I don't know whether it makes sense to copy over any files. Does that work?

That still works! I use it for multiple Firefox Profiles AND for awhile (a few years ago) I was using the same cache folder for 2 different Profiles; seemed to work fine with 2 Profiles sharing the same cache.

more options

Pkshadow said

Depending on what you need, adblockers to block cookies as the write more. I set mine up as per this url as do not find need it even with 10+ tabs open at a time : https://www.servethehome.com/firefox-is-eating-your-ssd-here-is-how-to-fix-it/ I would not worry too much about writes as SSD lifespan is large.

I try not to block cookies so that the sites function properly, but I do use an ad blocker to block some annoyances. Lately my Samsung 850 EVO has been acting erratically where it jumps many Total Writes out of the blue, but before that, I believe that it is due to Firefox cache and sessions that they consume most writes, which can be 100G.B. over 3 days; I am very active and navigate to sites on many tabs daily. (Currently at 28.4 T.B. out of the max 75 it is predicted to last, good 3 years with it.)

Modified by megamanx

more options

jscher2000 said

  • 15000 => as often as every 15 seconds (default)
  • 30000 => as often as every 30 seconds
  • 60000 => as often as every 60 seconds
  • 90000 => as often as every 90 seconds

Yes, like I said I set it to 1,200,000 so it does less Session Storing. It is fine there, I guess I can raise it if it bothers me. So, my main focus is on cache. Thanks for the tip.

more options

Note that if you share the same location for the cache between profiles then you won't be able to run multiple instances at then same time via -no-remote. Note that you can also create a profile folder on that other drive and in such a case the caches are within that profile folder. Note that you need to create this profile folder on beforehand before using "Choose folder" in the Profile Manager to select this folder.

Note that you should never use "Choose Folder" to specify a folder that already contains files that do not belong to Firefox. Only use "Choose Folder" to register a profile that isn't listed in the Profile Manager.