Question
How to enable / disable OPcache for a domain in Plesk?
Answer
-
Find PHP version used by the website at Domains > example.com > Dashboard tab > PHP.
-
On the same page, verify that:
-
opcache.enable is "on"
-
disable_functions setting does not contain OPcache functions (by default,
opcache_get_status
is disabled)Note: To disable OPcache for the domain, switch opcache.enable to "off".
-
-
Verify that OPcache is enabled in global PHP settings at Tools & Settings > PHP Settings > PHP X.X handler.
Note: OPcache statistics are available at Domains > example.com > PHP Settings > View the php_info() page - cache hits, cache misses.