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.

Revisions

  1. gerzenstl revised this gist Mar 3, 2017. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion useful-drush-commands.sh
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,7 @@
    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]'))";
    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
  2. gerzenstl created this gist Nov 12, 2015.
    6 changes: 6 additions & 0 deletions useful-drush-commands.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@

    # 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]'))";