Truncate cache tables through SQL statement.

Public

Truncate cache tables in MySQL regardless of the active cache backend.

Get raw version
bash
  1. echo "SHOW TABLES LIKE 'cache%'" | $(drush sql-connect) | tail -n +2 | xargs -L1 -I% echo "TRUNCATE TABLE %;" | $(drush sql-connect) -v