chg: clear cakephp cache

pull/79/head
Luciano Righetti 2021-12-17 13:20:02 +01:00
parent 16201369de
commit 9a0c025ca9
1 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,14 @@ run_all_migrations() {
./bin/cake migrations migrate -p ADmad/SocialAuth ./bin/cake migrations migrate -p ADmad/SocialAuth
} }
delete_model_cache() {
echo >&2 "Deleting cackephp cache..."
rm -rf ./tmp/cache/models/*
rm -rf ./tmp/cache/persistent/*
}
delete_model_cache
# waiting for DB to come up # waiting for DB to come up
for try in 1 2 3 4 5 6; do for try in 1 2 3 4 5 6; do
echo >&2 "migration - attempt $try" echo >&2 "migration - attempt $try"