M3Server Technical Blog FAQ disable php opcache per site

disable php opcache per site



In some cases, php opcache causes an incompatible php application to fail. Disabling for a single site instead of all sites is recommended:

edit the web site’s root .htaccess file, place this at the very top of it:


php_flag opcache.enable Off

See also, “what is htaccess