How to disable OPcache on a VPS

OPcache is a caching engine built into PHP. When enabled, it dramatically increases the performance of websites that utilize PHP. OPcache is enabled by default on all DreamHost servers.

What happened to XCache?

XCache will not work with PHP 7 or newer versions, so it is no longer recommended. Because of this, OPcache replaced the outdated “XCache” option which was previously available on Virtual Private Servers.

Unlike XCache, OPcache is supported on all versions of PHP that DreamHost offers, so there’s no special configuration required to make it work.

How to disable OPcache?

  1. Navigate to the (Panel > 'Domains' > 'Manage Domains') page.
  2. Locate the domain on your VPS that you wish to disable OPcache on.
  3. To the right of this domain, click the 'Edit' link under the 'Web Hosting' column.
  4. On the domain's settings page, look under the section titled 'Web Options'.
    disable_opcache.png
  5. UN-check the box next to 'PHP OpCache Support'.
  6. Click the Change settings button to save.

Did this article answer your questions?

Article last updated .