We would like to 'migrate' our project to use opcache, instead of apc. How can we do this?
On our VPS, we have php 5.6 installed with opcache.enable => On
, however, our assets won't load and Doctrine shows several errors in the logfile. (Because Doctrine is still trying to call ApcCache)
2015/02/16 15:22:21 [error] 22231#0: *29515 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function Doctrine\Common\Cache\apc_fetch() in snip_path/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcCache.php on line 40" while reading response header from upstream, client: snip_ip, server: snip_server, request: "GET /app_dev.php/js/57b7149_part_1_templates_2.js HTTP/1.1", upstream: "fastcgi://unix:/var/run/php_fpm_cynex.sock:", host: "snip_host", referrer: "snip_referer"