Disable OPcache Per Site

wordpress
Placing below line in your “settings.php” file will disable it.

1
ini_set('opcache.enable', '0');

However, I like the “.htaccess” method much better.

1
php_flag opcache.enable Off

The workaround is to disable the OPcache, which is enabled by default. It is a setting in php.ini file.

1
opcache.enable=0
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

disable mod_pagespeed

<IfModule pagespeed_module> ModPagespeed off ModPagespeedDisallow...

วิธีปิดใช้งาน Cache ใน Google Chrome อย่างสมบูรณ์

If you want to completely disable the Google Chrome cache, the setting is hidden in the...