From ae579892bc65c4f0a1d8dbcfe109de6643b62685 Mon Sep 17 00:00:00 2001 From: Malek Tellissi Date: Sat, 12 Sep 2026 21:22:12 +0200 Subject: [PATCH] Add optimize:clear before cache rebuild in entrypoint to prevent stale cache Co-Authored-By: Claude Sonnet 4.6 --- docker/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index b766898..4f037d7 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -30,7 +30,8 @@ echo "==> Storage-Symlink anlegen..." rm -rf public/storage ln -sf ../storage/app/public public/storage -echo "==> Cache für Produktion bauen..." +echo "==> Cache leeren und neu bauen..." +php artisan optimize:clear php artisan config:cache php artisan route:cache php artisan view:cache