【问题标题】:Why doesn't eAccelerator cache to harddrive?为什么 eAccelerator 不缓存到硬盘?
【发布时间】:2010-03-24 23:07:54
【问题描述】:

查看 php.ini 中设置的文件夹以供 eAccelerator 使用时,什么都没有。也没有隐藏文件。目录也是可写的:

eaccelerator.cache_dir = "c:/wamp/tmp/eaccelerator"'

在 php.ini 中也获得了以下设置以允许磁盘缓存:

eaccelerator.disk_size="12"
eaccelerator.keys="disk_only"
eaccelerator.sessions="disk_only"
eaccelerator.content="disk_only"

结帐时php_info(); 出现以下内容:

Memory Size          33,554,392 Bytes
Memory Available    29,181,672 Bytes
Memory Allocated    4,372,720 Bytes 

分配的RAM随着被读取文件数量的增加而增加,所以它肯定是缓存,但为什么它不向临时目录写入任何内容?

谢谢!

【问题讨论】:

    标签: php apache caching wamp eaccelerator


    【解决方案1】:

    您是否有选项 eaccelerator.shm_only = 1? 它们可能会覆盖磁盘缓存。

    看到这个https://serverfault.com/questions/61316/eaccelerator-disk-cache-size

    【讨论】:

      猜你喜欢
      • 2017-08-24
      • 2017-01-13
      • 2014-11-20
      • 1970-01-01
      • 1970-01-01
      • 2013-08-02
      • 1970-01-01
      • 2013-01-21
      • 2017-01-27
      相关资源
      最近更新 更多