How to Disable Opcache on Shared Hosting

Ben Gayson
Published: 1 August 2025Last updated: 1 August 2025
Share:

Opcache is an extension available for PHP which improves the speed and efficiency of PHP applications by caching PHP scripts. However, there are times when you might want to disable Opcache, such as when you are developing and making changes to your application, or if you are attempting to debug an issue with your application. 

To disable Opcache you need to navigate to the .user.ini file and then add the following: 

opcache.enable = 0

This will then ensure that Opcache is no longer enabled. This change should then be reflected on your site / application within a few minutes. 

If you have any questions regarding disabling Opcache, please contact our support team, who will be more than happy to assist further.