I’m fairly new to Drupal (Drupal 8) and OPcode caching. I hate to see warnings, and checked with my hosting provider who assured me that OPcode caching was enabled.
I configured my php.ini with the necessary information, and checked that my cache folder was indeed filling up with information from people visiting my site.
Yet the warning:
PHP OPcode caching Not enabled
PHP OPcode caching can improve your site’s performance considerably. It is highly recommended to have OPcache installed on your server.
How to Fix Opcache Warning
php.ini and append this line of code.
[opcache]zend_extension=php_opcache.dll;Determines if Zend OPCache in enabledopcache.enable=1opcache.memory_consumption=128opcache.interned_strings_buffer=8opcache.max_accelerated_files=4000opcache.revalidate_freq=60opcache.fast_shutdown=1
Restart your Apache/Nginx. Refresh your admin page. The warning will be gone. That’s it, you’re done.
Originally posted 2019-07-21 20:00:00.