转载自:http://www.banyue.net/archives/355.html
现在好多主机都支持eAccelerator加速,鉴别方法,phpinfo如图:
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
有这个就可以了
wordpress用户,可以开启wordpress自己的cache功能提高性能:
编辑wp-config.php,加上一句:
// Enable the WordPress Object Cache:
define(ENABLE_CACHE, true);
在wp-content目录下建立cache文件夹并赋予777权限
# mkdir ./wp-content/cache
# chmod 0777 ./wp-content/cache
搞定,开启了eAccelerator 后感觉加载速度没啥明显效果,后来又开启了 memcached,感觉好一些,可以看上一篇文章,安装memcache和memcached
Speak Your Mind