diff --git a/docker/setup.sh b/docker/setup.sh index 25e938d..3a56290 100755 --- a/docker/setup.sh +++ b/docker/setup.sh @@ -114,6 +114,11 @@ pexec php bin/console asset-map:compile # php-fpm runs as www-data and must be able to write there at runtime. pexec chown -R www-data:www-data var +# php.ini sets opcache.validate_timestamps=0, so php-fpm keeps serving the +# old compiled code/templates until it restarts. Bounce it so a --no-build +# run (git pull + this script) actually picks up the new cache. +dc restart php + # Make sure Nginx Proxy Manager can reach this stack's nginx by name. # Harmless (and a no-op) if already connected; NPM keeps it across restarts. NPM_CONTAINER="${NPM_CONTAINER:-nginx_app_1}"