为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Multiple profiles with different cache settings

  • 3 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 Congree

more options

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?

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?

所有回复 (3)

more options

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;
more options

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?

由Congree于修改

more options

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!