Question
- How to ensure that opcache is enabled or disabled for a Plesk domain?
- Is it possible to activate or deactivate opcache for a Plesk site?
- How can I enable opcache for a website?
- How can I disable OPcache for a domain?
- How can I switch off or switch on OPcache for a domain?
Answer
-
Check which PHP handler is used by the website at Domains > example.com > PHP Settings > PHP support ( PHP version ...)
Note: According to PHP Documentation, OPcache is available only since PHP 5.5. For PHP 5.2, 5.3 and 5.4 it can be installed as PECL extension.
-
Check if OPcache is active or inactive for the domain at Domains > example.com > PHP Settings > Performance Settings > opcache.enable
- Check if OPcache is enabled for the handler at Tools & Settings > PHP Settings > PHP_HandlerName
Note: Opcache statistics are available at Domains > example.com > PHP Settings > View the php_info() page - cache hits, cache misses.
Additional information
Customizing PHP Parameters | Plesk Obsidian documentation