Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Multiple profiles with different cache settings

  • 3 trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi 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?

Tất cả các câu trả lời (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?

Được chỉnh sửa bởi Congree vào

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!