最近在做php接口优化,其中一个优化是使用opcode 缓存 。 查阅资料后得知, 缓存 opcode可通过使用 apc、eAccelerator、XCache 三种扩展。 后来发现在我们的服务器上已经安装了eAccelerator 扩展,php.ini 配置如下: [eaccelerator] zend_extension="/usr/l
最近在做php接口优化,其中一个优化是使用opcode缓存。
查阅资料后得知,缓存opcode可通过使用 apc、eAccelerator、XCache 三种扩展。
后来发现在我们的服务器上已经安装了 eAccelerator 扩展,php.ini 配置如下:
[eaccelerator]
zend_extension="/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so"
eaccelerator.shm_size="64"
eaccelerator.cache_dir="/tmp/eaccelerator_cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
对照这些配置项的含义后,发现没有哪个配置明确说明 已经开启缓存opcode的功能。
[PHP房产程序|BBWPS]功能介绍 1、5种信息类别发布:出租、求租、出售、求购、楼盘信息,支持会员发布信息审核; 2、灵活的信息参数设置; 3、充足的信息字段; 4、简单易用的发布/编辑功能,支持配图上传; 5、灵活的信息管理功能; 6、信息输出伪静态,方便搜索引擎抓取数据; 7、支持RSS输出; 8、内置数据高速缓冲技术,可灵活设置缓冲功能是否启动及过期时间; 9、支持 Google 地图
0
立即学习“PHP免费学习笔记(深入)”;
如果已经开启了,怎么才能证明,使用了opcode缓存。怎么查看缓存的命中率、缓存状态等相关信息?
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号