Skip to content

Commit c90bda0

Browse files
MCLOUD-5671: Add cache clearing to CLI (#184)
1 parent b3a2a4e commit c90bda0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dist/bin/magento-docker

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ USAGE="Magento Cloud Docker
1616
ece-deploy run deploy hooks
1717
ece-post-deploy run post-deploy hooks
1818
ece-redeploy run build, deploy, and post-deploy hooks
19+
flush-redis clears redis cache
20+
flush-varnish clears varnish cache
1921
ece-db access to Database
2022
2123
\033[33mOptions:\033[0m
@@ -63,6 +65,11 @@ case "$1" in
6365
docker-compose run --rm deploy cloud-deploy
6466
docker-compose run --rm deploy cloud-post-deploy
6567
;;
68+
flush-redis)
69+
docker-compose exec redis redis-cli FLUSHALL
70+
;;
71+
flush-varnish)
72+
docker-compose exec varnish varnishadm ban req.url '~' '.'
6673
ece-db)
6774
docker-compose exec db sh -c 'mysql -u $MYSQL_USER -p$MYSQL_PASSWORD $MYSQL_DATABASE "$@"'
6875
;;

0 commit comments

Comments
 (0)