Created
May 1, 2019 00:06
-
-
Save gdm/c147bc2f72ad6bbd9b33f37522b5ca7e to your computer and use it in GitHub Desktop.
clean-cache-magento
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf /var/run/nginx-cache/* | |
rm -rf /home/shop_production/htdocs/var/cache/* | |
rm -rf /cache/catalog-cache/* | |
rm -rf /cache/shop-cache/* | |
rm -rf /cache/nginx-cache/* | |
# clean redis | |
redis-cli flushall | |
# clean memcached | |
echo -e "flush_all\nquit\n" | nc localhost 11211 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment