How does laradock make the modified configuration file (opcache.ini) under php-fpm put Synchronize into the container?

I modified the opcache.ini file to configure as follows

< hr >

; NOTE: The actual opcache.so extention is NOT SET HERE but rather (/ usr/local/etc/php/conf.d/docker-php-ext-opcache.ini)

opcache.enable= "1"
opcache.memory_consumption= "256"
opcache.use_cwd= "0"
opcache.max_file_size= "0"
opcache.max_accelerated_files = 30000
opcache.validate_timestamps= "1"
opcache.revalidate_freq= "5"

< hr >

cat / usr/local/etc/php/conf.d/opcache.ini look at the files in the container and there is no change, so that opcache cannot take effect. What should I do?

Jul.06,2021

just map the local file directly to the container.

Menu