How to enable PHP OPcode caching for Drupal 8?

Hello Universe picture Hello Universe · Jul 5, 2016 · Viewed 17k times · Source

I want to enable PHP OPcode caching for Drupal 8 installation. I have the following in Xampp php.ini. However, I still get opcode not enabled. What am I doing wrong??

opcache.enable=1

engine = On
zend_extension=php_opcache.dll


opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1

Answer

LubosMertak picture LubosMertak · Jul 12, 2016

Here is nice post about OPCache: How to use PHP OPCache?

And here is for localhost with XAMPP: https://www.drupal.org/node/2623566