Last active
March 3, 2017 04:48
-
-
Save gerzenstl/2cf5d357ca65bf0661ce to your computer and use it in GitHub Desktop.
Useful drush commands
This file contains hidden or 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
| # Flush memcache on [site domain] domain | |
| drush ev "dmemcache_flush()" --uri="[site domain]" | |
| # Flush varnish cache on [site domain] domain | |
| drush ev "_varnish_terminal_run(array('ban req.http.host ~ [site domain]'))"; | |
| # Truncates all cache tables with SQL queries | |
| echo "SHOW TABLES LIKE 'cache%'" | $(drush sql-connect) | tail -n +2 | xargs -L1 -I% echo "DELETE FROM %;" | $(drush sql-connect) -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment