From c561d38270a6d2d1320eaed8f6106a17c639b5a2 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 21 Apr 2020 10:05:33 +0200 Subject: [PATCH] [fix] perform cache clear in final_path --- scripts/upgrade | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 0a12c9e..368e706 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -268,8 +268,10 @@ if [ $bazaar_extension -eq 1 ]; then install_and_activate_extension $app $php_version $final_path $db_name "flagrow/bazaar" "flagrow-bazaar" fi -# Clear Flarum's cache -exec_as $app php$php_version flarum cache:clear +# Clear cache +pushd $final_path + exec_as $app php$php_version flarum cache:clear +popd #================================================= # SETUP LOGROTATE