In theory, the extension for Zend Opcache should be included with all PHP 7 & higher builds.
However, it does not seem to be enabled by default.
To enable it, you should be able to go into your PHP.INI file and search for
opcache.
Since you're running Windows, it'll likely be a .DLL file. I'm on Linux, so mine is an .SO file.
Either way, just uncomment the entry in your PHP.INI, and restart Apache.
Change:
- Code: Select all
;zend_extension=opcache.so
to this:
- Code: Select all
zend_extension=opcache.so
(substitute .DLL for .SO, if doing this on Windows)
You can also add a few "tweaks" to how Zend Opcache runs, if desired. They're purely optional, but can help you to fine-tune your performance.
Here's what mine has in PHP.INI:
- Code: Select all
zend_extension=opcache.so
opcache.enable=1
opcache.memory_consumption=128
opcache.max_accelerated_files=3000
opcache.revalidate_freq=60
Hope this helps!