搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to disable or limit output to cache2/entries

  • 2 回覆
  • 0 有這個問題
  • 18 次檢視
  • 最近回覆由 4365882

more options

Hi, I am using firefox browser to show some data on screen. The page include several ajax parts which are refreshing latest data every 5 seconds. I fond that the cache2/entries folder will generate one new file per request. Each file is not large but the amount is huge after I open the page for days. It finally crushed my Linux by following error"a start job is running for Create Volatile Files and Directories". Is there any configuration options can diable output cache to this folder? Any solution to limit the max number of cache files or to remove the cached files while keep Firefox opening? Thanks in advanced!

Hi, I am using firefox browser to show some data on screen. The page include several ajax parts which are refreshing latest data every 5 seconds. I fond that the cache2/entries folder will generate one new file per request. Each file is not large but the amount is huge after I open the page for days. It finally crushed my Linux by following error"a start job is running for Create Volatile Files and Directories". Is there any configuration options can diable output cache to this folder? Any solution to limit the max number of cache files or to remove the cached files while keep Firefox opening? Thanks in advanced!

所有回覆 (2)

more options

Hmm, Firefox allows adjusting the total cache size, but if the files are very small, that might not resolve the issue. You could give it a try:

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

More info on about:config: Configuration Editor for Firefox. The moderators would like us to remind you that changes made through this back door aren't fully supported and aren't guaranteed to continue working in the future.

(2) In the search box in the page, type or paste cache.disk and pause while the list is filtered

Firefox should display numerous preferences related to the cache size.

(3) Find the browser.cache.disk.smart_size.enabled preference near the bottom of the list. Double-click the preference to switch the value from true to false. This is necessary to set your own size.

(4) Find the browser.cache.disk.capacity preference near the top of the list. The default value of 256000 is in KB, so it's 256 MB. This probably already is smaller than you had recently with smart sizing. If you want to reduce it further, double-click the preference to display an editing field, enter the value desired, then press Enter or click the blue check mark button to save the change.

more options

jscher2000 - Support Volunteer said

Hmm, Firefox allows adjusting the total cache size, but if the files are very small, that might not resolve the issue. You could give it a try: (1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk. More info on about:config: Configuration Editor for Firefox. The moderators would like us to remind you that changes made through this back door aren't fully supported and aren't guaranteed to continue working in the future. (2) In the search box in the page, type or paste cache.disk and pause while the list is filtered Firefox should display numerous preferences related to the cache size. (3) Find the browser.cache.disk.smart_size.enabled preference near the bottom of the list. Double-click the preference to switch the value from true to false. This is necessary to set your own size. (4) Find the browser.cache.disk.capacity preference near the top of the list. The default value of 256000 is in KB, so it's 256 MB. This probably already is smaller than you had recently with smart sizing. If you want to reduce it further, double-click the preference to display an editing field, enter the value desired, then press Enter or click the blue check mark button to save the change.

Thank you for your detail solution. I may not describ my problem clearly. Actually, I am not concerning about the size but the total number of the files. My function will generate about 5000 requests per hour, which means it will generate 5000 files per hour which is 1 million files in 10 days. It only used 1% of disk before system crush. But I will try your solution to see if that works. I believe if I limit the cache to a very small size, it would also resolve my issue. Anyway, appreciate your solution. It enlight me to review the configuration editor, it should have some items can limit the cache in several aspects. I just need to find them. Thanks!