Enabling PHP7 Opcache
<p>I recently upgraded to PHP 7.</p>

<p>I placed this in /etc/php.d/opcache.ini</p>

<pre><code>opcache.file_cache = /var/www/html/.opcache
opcache.file_cache_only = 1
</code></pre>

<p>and created the directory (as root)</p>

<p>When I visit the site there is nothing created in the .opcache folder</p>

<p>a <code>phpinfo();</code> reflects the changes I made in opcache.ini</p>

<p>How can I get PHP 7 Opcache working at optimal performance with WordPress?</p>

<p><em>update</em>
The problem was witch folder permissions. 'Ale sure the Apache can write to it.</p>

<p>What are the optimal settings for it? Security and speed wise?</p>