Articles in this section

How to enable / disable OPcache for a domain in Plesk

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

Question

How to enable / disable OPcache for a domain in Plesk?

  • 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

  1. Log in to Plesk.

  2. Find PHP version used by the website at Domains > example.com > Dashboard tab > PHP.



  3. 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".




  4. 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.

Was this article helpful?

Comments

1 comment
Date Votes

Please sign in to leave a comment.