We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

OPcache

Hi all, I am using PHP 5.5.9 on Ubuntu 14.04 The PHP 5.5.9 not support APC, its come with OPcache. My proble is with the metadata. According to documentation there is a option to save meatedate in APC but what shuld I do if I use PHP 5.5 where APC in unavaliable and instead there is a Zend OPcache?



19.1k

I just now found that instead of APC I should use APCU for PHP 5.5 (just installed from pecl: pecl install apcu and enabled in php.ini, all works greate) so it's looks like I can use \Phalcon\Mvc\Model\MetaData\Apc withuot any proble. Still just curious, is Phalcon going to support OPcache?



98.9k
Accepted
answer

OPcache only caches PHP bytecode, there's no way to use it to cache data, so we don't have anything to support.