title: Using opcache on PHP 5.6 with Symfony 2.5.*
body: <p>We would like to 'migrate' our project to use opcache, instead of apc. How can we do this?</p>
  
  <p>On our VPS, we have php 5.6 installed with <code>opcache.enable =&gt; On</code>, however, our assets won't load and Doctrine shows several errors in the logfile. (Because Doctrine is still trying to call ApcCache)</p>
  
  <blockquote>
    <p>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 <em>snip_path</em>/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcCache.php on line 40" while reading response header from upstream, client: <em>snip_ip</em>, server: <em>snip_server</em>, 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: "<em>snip_host</em>", referrer: "<em>snip_referer</em>"</p>
  </blockquote>