Introduction
PHP OPcache improves performance by caching PHP code. This is enabled by default, but in some cases may not be desirable, for example in a development environment or if you make changes to PHP files frequently. This can be disabled if needed.
How to Disable (PHP-CLI)
PHP settings are stored in /mnt/jrc-confs/php/conf.d/30-jrc.ini. Edit this file, for example with nano:
nano /mnt/jrc-confs/php/conf.d/30-jrc.ini
Locate the following line:
opcache.enable=1
Change its value to 0:
opcache.enable=0
Restart PHP-FPM in the AutoPilot interface in the Actions tab of your deployment.
After restarting PHP-FPM, OPcache is now disabled.
Comments
0 comments
Article is closed for comments.