After following the documentation, my new OPCache settings are like this:
opcache.preload_user=www-data
opcache.preload=/var/www/vhosts/.../httpdocs/.../var/cache/prod/App_KernelProdContainer.preload.php
opcache.memory_consumption=1024
opcache.interned_strings_buffer=256
opcache.max_accelerated_files=20000
opcache.validate_timestamps=0
By default, inside var/cache/prod
folder there is a file named srcApp_KernelProdContainer.preload.php
.
After deleting /cache folder & restarting PHP-FPM, App_KernelProdContainer.preload.php
is not created.
Should I rename App_KernelProdContainer.preload.php
to srcApp_KernelProdContainer.preload.php
or am I missing something else?