Enable OPCache not working in WAMP

I tried to enable OPCache for Drupal 8.0.4 in WAMP 3, but it does not work. So, I googled and changed a few things in my php.ini file, and here is what I changed:

opcache.enable=0 

to

 opcache.enable=1 

and

 opcache.enable_cli=0 

to

 opcache.enable_cli=1 

But still, '!' An icon appears next to the PHP extension. When I try to get a log, it says:

 Sorry, The 'php_opcache' extension cannot be loaded by 'extension=php_opcache.dll' in php.ini. Must be loaded by 'zend_extension='. Switch cancelled Press ENTER to continue... 

But the PHP.ini file says:

 zend_extension ="C:/wamp/bin/php/php7.0.0/ext/php_opcache.dll" 

What else needs to be done to enable OPCache?

+7
wamp opcache
source share
1 answer

Go to the PHP / php.ini configuration file and add these two lines at the end of the page

zend_extension = php_opcache.dll

; Determines if OPCache Zend is enabled

opcache.enable = 1

You can also increase the maximum runtime in the php.ini configuration file.

max_execution_time = 180

Hope this helps.

+2
source share

All Articles