Live chat

How to disable OPcache in HestiaCP

How to disable OPcache (if the site shows outdated data)

Sometimes a site may display outdated information due to server-side caching (OPcache).

What you need to do:

  1. Go to the site’s root directory (usually the public_html folder)
  2. Create a .user.ini file
  3. Add this line to the file:
opcache.enable=0

Parameter values:

  • 0 — OPcache disabled
  • 1 — OPcache enabled

After that:

  • Wait 1–5 minutes
  • Clear your browser cache
  • Refresh the site page