From cb9f63b986b3d903541ba1d8063d1bf2cad0550c Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Sat, 26 May 2018 22:10:15 +0200 Subject: [PATCH] Clear assets cache (fixes #48) --- scripts/change_url | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index d65f699..700b0e2 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -109,6 +109,9 @@ if [ "$download_images_enabled" = "1" ] ; then ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_user" <<< "UPDATE entry SET content = REPLACE(content, '$old_domain$old_path', '$new_domain$new_path');" fi +# Clear assets cache +ynh_secure_remove $final_path/var/cache + #================================================= # GENERIC FINALIZATION #=================================================