From 4d7933cef083156fe3da9e17f506022269aaff89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Sainl=C3=A9ger?= Date: Mon, 2 Feb 2026 17:24:11 +0100 Subject: [PATCH] [IMP] add final script to purge QWeb cache from compiled assets --- finalize_db.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/finalize_db.sh b/finalize_db.sh index 1eb6a19..5a37fed 100755 --- a/finalize_db.sh +++ b/finalize_db.sh @@ -28,6 +28,16 @@ EOF ) query_postgres_container "$FINALE_SQL_2" "$DB_NAME" || exit 1 +# Purge QWeb cache from compiled assets +FINALE_SQL_3=$(cat <<'EOF' +DELETE FROM ir_attachment +WHERE name LIKE '/web/assets/%' + OR name LIKE '%.assets_%' + OR (res_model = 'ir.ui.view' AND mimetype = 'text/css'); +EOF +) +query_postgres_container "$FINALE_SQL_3" "$DB_NAME" || exit 1 + # Uninstall obsolette add-ons PYTHON_SCRIPT=post_migration_cleanup_obsolete_modules.py echo "Uninstall obsolete add-ons with script $PYTHON_SCRIPT ..."