We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 838a1e7 commit 5587c62Copy full SHA for 5587c62
1 file changed
docker/app/phpfpm-entrypoint.sh
@@ -31,6 +31,16 @@ if [ "${RUN_MIGRATIONS:-false}" = "true" ]; then
31
php bin/console doctrine:migrations:migrate --no-interaction --allow-no-migration
32
fi
33
34
+if [ "${APP_ENV:-prod}" != "dev" ]; then
35
+ if php bin/console debug:container doctrine.result_cache_pool >/dev/null 2>&1 \
36
+ && php bin/console debug:container doctrine.system_cache_pool >/dev/null 2>&1; then
37
+ echo "[entrypoint] Clearing Doctrine cache pools."
38
+ php bin/console --no-interaction cache:pool:clear doctrine.result_cache_pool doctrine.system_cache_pool
39
+ else
40
+ echo "[entrypoint] Doctrine cache pools are not configured; skipping cache pool clear."
41
+ fi
42
+fi
43
+
44
if [ "${APP_ENV}" = "dev" ]; then
45
php bin/console cache:clear --no-interaction || true
46
0 commit comments