Last active
March 3, 2017 04:48
-
-
Save gerzenstl/2cf5d357ca65bf0661ce to your computer and use it in GitHub Desktop.
Revisions
-
gerzenstl revised this gist
Mar 3, 2017 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal 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]'))"; # 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 -
gerzenstl created this gist
Nov 12, 2015 .There are no files selected for viewing
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 charactersOriginal 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]'))";