How to enable PHP OPcode caching for Drupal 8?
Solution 1
Here is nice post about OPCache: How to use PHP OPCache?
And here is for localhost with XAMPP: https://www.drupal.org/node/2623566
Solution 2
First of all check your PHP version. Before and after PHP 5.5 things are little bit different. You may refer for difference here http://php.net/manual/en/opcache.installation.php
Also if you are using zend extension then full path of dll is required in below
zend_extension=/your/path/tod/dll/php_opcache.dll
Also make sure to use correct one in terms of threaded or non threaded version.
Solution 3
Open php.ini file. There You have to uncomment this line of code: zend_extension=opcache.so . After that restart lampp/xampp. It works for me.
Hello Universe
By day: Project Officer By night: Stargazer, enthusiastic about everything scientific, food taster, and lyfe. Also a very active algo trader
Updated on July 09, 2022Comments
-
Hello Universe almost 2 years
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
-
Morse almost 6 yearsUse formatting tools to make your post more readable. Code block should look like
code block
. Use bold italics if needed -
Kodali444 over 4 yearsAnd here is for localhost with XAMPP: drupal.org/node/2623566 . This one worked for me. Lubos @thank you