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".

Learn More

what are the different values for this preference "browser.cache.disk.capacity"?

  • 9 trả lời
  • 0 gặp vấn đề này
  • 11 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

on some websites it says -1 tells Firefox to automatically determine the size of the cache based on your physical disk and setting it to 0 would effectively disable any disk cache entrys.

so are this informations true and if not, how do i still let firefox automatically determine the size of the cache based on my physical disk?

on some websites it says '''''-1 tells Firefox to automatically determine the size of the cache based on your physical disk''''' and setting it to 0 would effectively disable any disk cache entrys. so are this informations true and if not, how do i still let firefox automatically determine the size of the cache based on my physical disk?

Tất cả các câu trả lời (9)

more options

and in which unit is the default cache capacity size? mb or kb?

Hữu ích?

more options

See:

# Disk cache capacity in kilobytes. It's used only when
# browser.cache.disk.smart_size.enabled == false
- name: browser.cache.disk.capacity
  type: RelaxedAtomicUint32
  value: 256000
  mirror: always

Hữu ích?

more options

cor-el said

See: # Disk cache capacity in kilobytes. It's used only when # browser.cache.disk.smart_size.enabled == false - name: browser.cache.disk.capacity type: RelaxedAtomicUint32 value: 256000 mirror: always

1. from when is this? when was it last updated? 2. you didn't answer my question properly with this copy pasted info.

Hữu ích?

more options

You may deduct from the comment in the source code that setting browser.cache.disk.smart_size.enabled = true enables Firefox to automatically determine the size of the cache. There is no need to modify browser.cache.disk.capacity, merely flipping browser.cache.disk.smart_size.enabled is sufficient to enable/disable this feature.

Hữu ích?

more options

cor-el said

You may deduct from the comment in the source code that setting browser.cache.disk.smart_size.enabled = true enables Firefox to automatically determine the size of the cache. There is no need to modify browser.cache.disk.capacity, merely flipping browser.cache.disk.smart_size.enabled is sufficient to enable/disable this feature.

and what about the ram? isn't there a smart size preference for the ram?

Hữu ích?

more options

For the memory cache you need to modify the pref directly as you can see if you read the lines about browser.cache.memory.capacity right below the disk cache pref.

# -1 = determine dynamically, 0 = none, n = memory capacity in kilobytes.
- name: browser.cache.memory.capacity
  type: RelaxedAtomicInt32
  value: -1
  mirror: always

Hữu ích?

more options

so you're telling me that for the disk cache there are 2 preferences, a preference for the normal disk cache capacity(browser.cache.disk.capacity) and a preference for smart disk cache(browser.cache.disk.smart_size.enabled) to let firefox dynamically determine the disk cache size while the memory cache has both of them in one preferences like the line you provided does say?

Hữu ích?

more options

You can see the effect of the settings by visiting about:cache in the address bar.

Hữu ích?

more options

See also bug 1027944.

  • 1027944 - When disk cache is disabled, hide "disk" cache section in about:cache (otherwise it repeats "memory" entries for "disk" category)

Hữu ích?

Đặt một câu hỏi

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.