如何更改firefox脱机缓存位置?

上网、浏览、聊天、下载等
人在井天
帖子: 1081
注册时间: 2009-04-29 21:22

如何更改firefox脱机缓存位置?

#1

帖子 人在井天 » 2009-08-29 11:01

在地址栏中输入:about:cache
可以看到,Offline cache device的位置在:

~/.mozilla/firefox/hx7osujo.default/OfflineCache

这样带来一些问题,一是,每次非正常关机的时候,重新打开firefox,都可以重新打开意外关闭的界面。这表明了这个脱机缓机文件的存储是实时的,这无疑增加了向硬盘的写入。另外,由于实时地向硬盘写入,肯定就导致了速度的变慢。如何能把这个位置改一下,改到设在内存中的/TMP文件夹中去。
网上没办法搜到这个问题的解决。

请注意,我不是要更改Disk cache device的位置。回复者请看清楚问题再回复吧。这个问题应有一定的难度。
头像
bumble-bee
帖子: 18
注册时间: 2009-08-18 12:24

Re: 如何更改firefox脱机缓存位置?

#2

帖子 bumble-bee » 2009-08-29 11:07

在firefox里面改。
人在井天
帖子: 1081
注册时间: 2009-04-29 21:22

Re: 如何更改firefox脱机缓存位置?

#3

帖子 人在井天 » 2009-08-30 18:15

唉,这个问题看来没人能解,只能期待firefox的编写者改正这个问题啦。
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

Re: 如何更改firefox脱机缓存位置?

#4

帖子 delectate » 2009-08-30 18:23

记得chrome也不能改

反正磁盘也是用来写的,只要不是ssd就ok

win的chrome就是把书标移动到地址栏,就要改3个键值……
人在井天
帖子: 1081
注册时间: 2009-04-29 21:22

Re: 如何更改firefox脱机缓存位置?

#5

帖子 人在井天 » 2009-08-31 12:35

delectate 写了:记得chrome也不能改

反正磁盘也是用来写的,只要不是ssd就ok

win的chrome就是把书标移动到地址栏,就要改3个键值……

这种设置实在是让人不爽的,这样的功能肯定会缩小硬盘的寿命,更重要的是导致速度的下降。所以人们诟病firefox的速度,这恐怕是一个重要的原因。
头像
mickeywaley
帖子: 1427
注册时间: 2009-03-19 9:19
系统: ubuntu
来自: 江苏
联系:

Re: 如何更改firefox脱机缓存位置?

#6

帖子 mickeywaley » 2009-08-31 12:52

全写内存,你开多了页面,和看电影不卡死
有个插件可以指定 的,以前用过
头像
soething
帖子: 746
注册时间: 2008-07-23 19:06

Re: 如何更改firefox脱机缓存位置?

#7

帖子 soething » 2009-08-31 13:08

这个cache动辄数百兆,放到内存恐怕吃不消。

内存大的话,建立内存的tmpfs,再设置过去好了。
头像
yechao1989
帖子: 576
注册时间: 2009-07-19 21:03

Re: 如何更改firefox脱机缓存位置?

#8

帖子 yechao1989 » 2009-08-31 13:14

没多大必要,缓存设小一点不就好了,或者直接隐私浏览吧
Man->Wiki->Google->Froum->Get it :-)
人在井天
帖子: 1081
注册时间: 2009-04-29 21:22

Re: 如何更改firefox脱机缓存位置?

#9

帖子 人在井天 » 2009-08-31 16:17

soething 写了:这个cache动辄数百兆,放到内存恐怕吃不消。

内存大的话,建立内存的tmpfs,再设置过去好了。

脱机文件正常的不过一百M左右而已,并不大。tmpfs是设置好了的。只是没有办法移过去。也无法用ln命令。
人在井天
帖子: 1081
注册时间: 2009-04-29 21:22

Re: 如何更改firefox脱机缓存位置?

#10

帖子 人在井天 » 2009-09-01 16:30

yechao1989 写了:没多大必要,缓存设小一点不就好了,或者直接隐私浏览吧

无论是把缓存设为0还是1,结果一样。
6wings.k
帖子: 386
注册时间: 2009-01-30 20:54

Re: 如何更改firefox脱机缓存位置?

#11

帖子 6wings.k » 2009-09-11 20:32

mark一下 :em06
人在井天
帖子: 1081
注册时间: 2009-04-29 21:22

Re: 如何更改firefox脱机缓存位置?

#12

帖子 人在井天 » 2010-02-25 11:14

已找到修改Offline cache device的办法

about:config 里新建字符串 browser.cache.offline.parent_directory ,值为你想要改到的目录,例如/tmp。

但是,问题依旧。
看来,这个实时写入的问题不是由Offline cache device导致的。
人在井天
帖子: 1081
注册时间: 2009-04-29 21:22

Re: 如何更改firefox脱机缓存位置?

#13

帖子 人在井天 » 2010-02-25 11:43

终于在网上找到了资料如下:

===================================
If you do not want Firefox to automatically restore your session after one crash, set the preference browser.sessionstore.max_resumed_crashes to 0 (default is 1)

To disable the crash recovery feature, set browser.sessionstore.resume_from_crash to false in about:config
====================================
把browser.sessionstore.max_resumed_crashes设置为0,把 browser.sessionstore.resume_from_crash设置为false,果然能够禁用这一功能。但不知是不是治标不治本,也就是说,不知是否能禁止了firefox对硬盘的实时写入。
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

Re: 如何更改firefox脱机缓存位置?

#14

帖子 delectate » 2010-02-25 11:49

人在井天 写了:终于在网上找到了资料如下:

===================================
If you do not want Firefox to automatically restore your session after one crash, set the preference browser.sessionstore.max_resumed_crashes to 0 (default is 1)

To disable the crash recovery feature, set browser.sessionstore.resume_from_crash to false in about:config
====================================
把browser.sessionstore.max_resumed_crashes设置为0,把 browser.sessionstore.resume_from_crash设置为false,果然能够禁用这一功能。但不知是不是治标不治本,也就是说,不知是否能禁止了firefox对硬盘的实时写入。
don't give firefox disk write privilege
人在井天
帖子: 1081
注册时间: 2009-04-29 21:22

Re: 如何更改firefox脱机缓存位置?

#15

帖子 人在井天 » 2010-02-25 12:09

delectate 写了:
人在井天 写了:终于在网上找到了资料如下:

===================================
If you do not want Firefox to automatically restore your session after one crash, set the preference browser.sessionstore.max_resumed_crashes to 0 (default is 1)

To disable the crash recovery feature, set browser.sessionstore.resume_from_crash to false in about:config
====================================
把browser.sessionstore.max_resumed_crashes设置为0,把 browser.sessionstore.resume_from_crash设置为false,果然能够禁用这一功能。但不知是不是治标不治本,也就是说,不知是否能禁止了firefox对硬盘的实时写入。
don't give firefox disk write privilege
搞笑! :em20
回复