开发者

is it possible to use php accelerators with zend framework

is it possible to use accelerators suc开发者_开发问答h as Memcache, APC, etc on a PHP+ZendFramework application and still have it work without Zend Framework going kaputt


Yes you can use PHP accelerators such as APC, eAccelerator which cache the PHP byte code (http://en.wikipedia.org/wiki/List_of_PHP_accelerators). Those type of cache just keep your "PHP scripts" in memory. It won't directly affect Zend Framework.

You can also use Memcache by using Zend_Cache (http://framework.zend.com/manual/en/zend.cache.introduction.html). Memcache is generally use to store raw data such as DB result, Page result.


I use APC under nginx+php-fpm in production with an ZF app and it works great. (You can use it under apache as well). It does provide a big boost, but you might want to setup a cron job to clear the apc cache once a day, after a while in certain conditions the memory gets fragmented and the performance drops a bit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜