Short answer: PHP normally compiles your site's code on every request. OPcache keeps the compiled code in memory, so later requests skip that step. It's a free, built-in speed boost for WordPress and other PHP sites, and most hosts enable it by default.
How it works
- A visitor requests a page.
- PHP compiles the scripts into bytecode.
- OPcache stores that bytecode in memory.
- The next request runs the stored bytecode directly.
How to check it's on
- In cPanel, open Select PHP Version or MultiPHP INI Editor and look for the opcache extension or settings.
- Or create a temporary phpinfo page, check the OPcache section, then delete the page.
After you deploy code
OPcache may keep serving the old compiled version briefly. Most setups notice file changes automatically; if not, restart PHP or clear OPcache from your control panel or a plugin.
OPcache and other caches
OPcache speeds up PHP itself. Page caching and object caching reduce how much PHP work is needed at all. See caching explained and Redis object caching.
Frequently asked questions
Does OPcache need configuration?
The defaults work for most sites. Busy sites may increase its memory.
Does a newer PHP version help too?
Yes. See which PHP version to use.



