为什么 eAccelerator 不缓存到硬盘?
当查看 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 随着正在读取的文件数量的增加而增加,所以它肯定是缓存,但为什么它不向临时目录写入任何内容?
谢谢!
When looking at the set folder in php.ini for eAccelerator to use, nothing is there. No hidden files as well. Directory is writable as well:
eaccelerator.cache_dir = "c:/wamp/tmp/eaccelerator"'
Also got the following settings in php.ini to allow disc cache:
eaccelerator.disk_size="12"
eaccelerator.keys="disk_only"
eaccelerator.sessions="disk_only"
eaccelerator.content="disk_only"
When checking out php_info();
following appears:
Memory Size 33,554,392 Bytes
Memory Available 29,181,672 Bytes
Memory Allocated 4,372,720 Bytes
The allocated RAM goes up as the numbers of file's being read increases, so it's definitely caching, but why doesn't it write anything to the temp directory?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你有选项 eaccelerator.shm_only = 1 吗?
它们可能会覆盖磁盘缓存。
请参阅此https://serverfault.com/questions/61316/eaccelerator-disk-cache-size
Did you have the option eaccelerator.shm_only = 1?
They may over-ride disk cache.
See this https://serverfault.com/questions/61316/eaccelerator-disk-cache-size