Skip to content

Commit

Permalink
Cleanup cache on change_url
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Jun 11, 2024
1 parent 9b717dc commit 35b92f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/change_url
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ if [ "$download_images_enabled" = "1" ]; then
<<< "UPDATE entry SET content = REPLACE(content, '$old_domain$old_path', '$new_domain$new_path');"
fi

# Clear assets cache
ynh_secure_remove --file="$install_dir/var/cache"
mkdir "$install_dir/var/cache"
chown "$app:www-data" "$install_dir/var/cache"

#=================================================
# END OF SCRIPT
#=================================================
Expand Down

0 comments on commit 35b92f0

Please sign in to comment.