X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Multiple profiles with different cache settings

Posted

I want to have multiple profiles with different settings for the cache. I'll call them ProfileOne and ProfileTwo for simplicity's sake. ProfileOne I want to clear its cache on exiting Firefox and on ProfileTwo have it retain its own cache. I have already setup both profiles and configured them accordingly with ProfileOne's privacy settings for Clear History > Cache checked so it clears on exit and ProfileTwo is not set to clear anything on exiting.

The main issue is that after doing something with ProfileTwo then switching to ProfileOne, upon exiting ProfileOne it also deletes ProfileTwo's cache. I have tried using the profile manager to create the profile in a different location than default to no avail. Is there any way to set it so ProfileOne's cache can still be cleared on exit without affecting ProfileTwo's cache?

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.5 r502
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.5
  • npsitesafety
  • 5.1.10411.0
  • NPWLPG
  • Unity Player 3.4.2f3
  • NPRuntime Script Plug-in Library for Java(TM) Deploy

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0

More Information

Application Basics
Name
Firefox
Version
18.0
User Agent
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
AVG Security Toolbar
11.1.0.7
false
avg@toolbar
Important Modified Preferences
Name
Value
accessibility.typeaheadfind.flashBar
0
browser.cache.disk.capacity
358400
browser.cache.disk.smart_size.first_run
false
browser.cache.disk.smart_size.use_old_max
false
browser.cache.disk.smart_size_cached_value
358400
browser.places.smartBookmarksVersion
4
browser.startup.homepage_override.buildID
20130104151925
browser.startup.homepage_override.mstone
18.0
extensions.lastAppVersion
18.0
network.cookie.prefsMigrated
true
places.history.expiration.transient_current_max_pages
102041
privacy.sanitize.migrateFx3Prefs
true
Graphics
Adapter Description
Intel(R) HD Graphics
Adapter Drivers
igdumd64 igd10umd64 igdumdx32 igd10umd32
Adapter RAM
Unknown
Device ID
0x0046
Direct2D Enabled
true
DirectWrite Enabled
true (6.1.7601.17789)
Driver Date
1-10-2012
Driver Version
8.15.10.2622
GPU #2 Active
false
GPU Accelerated Windows
1/1 Direct3D 10
Vendor ID
0x8086
WebGL Renderer
Google Inc. -- ANGLE (Intel(R) HD Graphics)
AzureCanvasBackend
direct2d
AzureContentBackend
direct2d
AzureFallbackCanvasBackend
cairo
JavaScript
Incremental GC
true
Accessibility
Activated
false
Prevent Accessibility
0
Library Versions
Expected minimum version
Version in use
NSPR
4.9.4
4.9.4
NSS
3.14.1.0 Basic ECC
3.14.1.0 Basic ECC
NSSSMIME
3.14.1.0 Basic ECC
3.14.1.0 Basic ECC
NSSSSL
3.14.1.0 Basic ECC
3.14.1.0 Basic ECC
NSSUTIL
3.14.1.0
3.14.1.0

cor-el
  • Top 10 Contributor
  • Moderator
10783 solutions 97036 answers

If you clear the cache when you close Firefox then current Firefox versions will disable the disk cache and only use the memory cache as you can see on the about:cache page that also shows the location of the cache if enabled.
This doesn't however clear current files in the cache.

Are you using the -no-remote command line switch to start any of the profiles?

Are you sure that Firefox is really using the other profile?

Copy and Paste this code in the Code field in the "Tools > Error Console" and click the "Evaluate" button to see the location of the profile folder.

Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("ProfD", Components.interfaces.nsIFile).path;

Helpful Reply

I am not using -no-remote command on any profiles. I am sure that I'm switching between the two profiles since I launch to profile manager and use that to change between the two. When running the provided code I get this on the profiles:

ProfileOne: C:\Users\davis\AppData\Roaming\Mozilla\Firefox\Profiles\ec042yhk.ProfileOne

ProfileTwo: C:\Users\davis\AppData\Roaming\Mozilla\Firefox\Profiles\c9apjl5g.ProfileTwo

When checking about:cache, ProfileTwo does list the Disk Cache and the files listed in about:cache do persist after loading ProfileOne. With that info I went back to double check and apparently my issue is with Cookies being deleted by ProfileOne on exiting.

To give a full understanding of what is going on, when I play and save a flash game on ProfileTwo, after loading ProfileOne and exiting, ProfileTwo's progress is deleted. After doing some research, it looks like the LSOs (flash cookies) are being deleted on exit since it is set to clear cookies. Since Adobe Flash doesn't differentiate between the profiles, everything is getting wiped.

Is there another way to keep those LSOs around without changing the delete cookies option for ProfileOne?

Modified by Congree

Helpful Reply

After checking a few different options, it looks like the add-on Better Privacy provides the options I need for LSO management and does separate HTML cookies from Flash cookies nicely and lets me save specific site's LSOs. Thanks for the assistance!