简体   繁体   中英

Config apc in zend framework 2

我需要在zend framework 2 + doctrine 3项目中最大化性能 ,该应用程序运行缓慢,因此我已经为某些查询启用了内存缓存,还为配置文件启用了缓存...但是应用程序仍然速度很慢,因此在网上搜索时,我发现了一些有关执行zf2项目并提到apc的文章,它们使应用程序不太慢,因此我已经安装了apc ,但是我找不到方法来配置如何启用apczend Framework 2中

APC is a PHP extension, it's not something you need to enable within individual applications unless you're using it for userland caching as well (which I assume you are not, since you mentioned memcache). You can check if it's working by firing up a phpinfo page and seeing if you have an APC section.

If you have PHP 5.5 or above, you don't need (and shouldn't use) APC, as PHP comes with its own (better) opcache.

I'd suggest you benchmark your application using something like XDebug to find out what is causing the slowness. This should give you a better idea what you need to improve.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM