dindog
千年狐狸
千年狐狸
  • UID30818
  • 注册日期2009-10-24
  • 最后登录2023-02-03
  • 发帖数1195
  • 经验59枚
  • 威望0点
  • 贡献值26点
  • 好评度10点
阅读:4893回复:5

firefox4历史记录时间相关设置解释

楼主#
更多 发布于:2010-12-22 14:10
其实是从3.7a开始,后来移到4就一直这样,我大致看了一下,说是以前的设置效率不高的同时也不是按用户理解那样运作的。原来有hard limit和lazy limit两个限制
简单点来说,3.6那样设置保存7天,是最少保存7天的意思。
Also, the old system was removing visits over 90 days only if a page limit was reached, so this is similar, just is like we removed the 180 days limit that many users were already removing by themselves.


现在变成自动调节
The new component is able to detect your hardware specs, especially memory size, and adapt expiration to it

Firefox/Projects/Places async expiration - MozillaWiki
https://wiki.mozilla.org/Firefox/Projec ... expiration
Places got Async Expiration - More sleep, less work.
http://blog.bonardo.net/2010/01/20/plac ... expiration

对于重度记录用户,可以手动调节。3.6下的下面设置都失效了:
browser.history_expire_days
browser.history_expire_days_min
browser.history_expire_sites

换成单一设置:
places.history.enabled 这个是否启用历史。
对想储存更多历史的用户(开发者好像不建议),下列设置有效:
places.history.expiration.max_pages

这是可储存的最大项目数
以前firefox跳个票的时间现在可以发布几个正式版了-_-
dindog
千年狐狸
千年狐狸
  • UID30818
  • 注册日期2009-10-24
  • 最后登录2023-02-03
  • 发帖数1195
  • 经验59枚
  • 威望0点
  • 贡献值26点
  • 好评度10点
1楼#
发布于:2010-12-22 14:10
2楼说得简单点吧。

就是从前设置那个日期是不小于多少xx天-180天,多于180天没访问的就算没达到空间上限也清除。否则只会在达到限制后清除最老的记录。但无论如何,最少都会保存xx天。
分别由这三个pref值控制:
browser.history_expire_days 过期即删
browser.history_expire_days_min 最少保存xx天,对应选项那个设置
browser.history_expire_sites 最大保存项目数,默认40,000


现在改成firefox根据内存,自动设置了最大项目数,无须用户设置了,溢出的数目都会按算法清除,无须用户设置。保证效率。相当于只剩下原来第三个设置,不过名字改了,叫:
places.history.expiration.max_pages
而且也没用固定的默认值,而是取决于计算机的内存大小

默认是不存在这个值的,要自己添加整数值,数字上等于这个,但不能直接改。
places.history.expiration.transient_current_max_pages

关系有点类似user.js和pref.js,前者改了后者会跟着变
以前firefox跳个票的时间现在可以发布几个正式版了-_-
游客

返回顶部