当查看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上升了,所以它肯定是缓存的,但是为什么不将任何内容写入临时目录呢?

谢谢!

有帮助吗?

解决方案

您是否有选项eaccelerator.shm_only = 1?他们可能会超越磁盘缓存。

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top