Skip to content

Instantly share code, notes, and snippets.

@gerzenstl
Last active March 3, 2017 04:48
Show Gist options
  • Select an option

  • Save gerzenstl/2cf5d357ca65bf0661ce to your computer and use it in GitHub Desktop.

Select an option

Save gerzenstl/2cf5d357ca65bf0661ce to your computer and use it in GitHub Desktop.
Useful drush commands
# 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