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:
- Go to the site’s root directory (usually the
public_htmlfolder) - Create a
.user.inifile - 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