OPcache: delay after modifying a PHP file
OPcache is enabled on our servers. It makes PHP faster, but it also means it can take a few seconds before a modified PHP file is actually used.
Are you developing and want your changes to take effect immediately? Then temporarily disable OPcache by adding this line to the .htaccess file in your public_html:
php_value opcache.enable 0
With PHP 8.4 and older, you can also disable OPcache in Select PHP version by unchecking opcache under the extensions. From PHP 8.5 onwards, OPcache is a fixed part of PHP. In that case, use the line in .htaccess.
Detailed explanation with screenshots: PHP settings per folder and via .htaccess and Enabling and disabling PHP extensions in the DirectAdmin manual.
