搜尋 Mozilla 技術支援網站

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

Learn More

Cache in ram disc does not have any temporary files

  • 5 回覆
  • 3 有這個問題
  • 51 次檢視
  • 最近回覆由 cor-el

more options

I am using xubuntu and want firefox to use a ramdisk cache. My settings are:

browser.cache.disk.parent_directory - string - /media/ramdisk browser.cache.disk.enable - false browser.cache.memory.enable - true

When I restart firefox I see a new cache2 folder appear in the ramdisk (as it should). Inside that folder are two more, doomed and entries.

In the past when I used a ramdisk the 'entries' folder always contained the data for the web pages viewed. This data disappears (as it should) on reboot.

However, now, the 'entries' folder is always empty - never contains any temporary files.

As far as I can tell, firefox is not using another cache somewhere as I changed the name to .old.

Is it now normal to act this way?

I am using xubuntu and want firefox to use a ramdisk cache. My settings are: browser.cache.disk.parent_directory - string - /media/ramdisk browser.cache.disk.enable - false browser.cache.memory.enable - true When I restart firefox I see a new cache2 folder appear in the ramdisk (as it should). Inside that folder are two more, doomed and entries. In the past when I used a ramdisk the 'entries' folder always contained the data for the web pages viewed. This data disappears (as it should) on reboot. However, now, the 'entries' folder is always empty - never contains any temporary files. As far as I can tell, firefox is not using another cache somewhere as I changed the name to .old. Is it now normal to act this way?

由 makem1 於 修改

被選擇的解決方法

所有回覆 (5)

more options

You need to enable the disk cache and set browser.cache.disk.enable = true

more options

But I am not using the disk. I am using ram so why enable disk?

Everywhere I read disk enable = false

about:cache shows:

memory Number of entries: 1357 Maximum storage size: 32768 KiB Storage in use: 20006 KiB Storage disk location: none, only stored in memory List Cache Entries disk Number of entries: 1357 Maximum storage size: 32768 KiB Storage in use: 20006 KiB Storage disk location: none, only stored in memory List Cache Entries

more options

The disk cache is the disk cache whether you have it on the hard drive or as a RAM disk in memory. Firefox already uses a memory cache for data kept in memory and you can't use a second cache without enabling the disk cache by setting browser.cache.disk.enable = true You need to set browser.cache.disk.parent_directory to the location (path) to the RAM disk and this cache location is only used when the disk cache is enabled.

more options

Thank you. You know better than everything I have read :)

more options

選擇的解決方法

You're welcome.