How to clear cache by SQL query | Drush command in Drupal 8

128

In this article we will discuss – How to clear cache by SQL query | Drush in Drupal 8 

Step 1# How to clear cache by SQL query in Drupal8 :

copy given below query and paste in your phpMyAdmin ‘s SQL section and click on Go for run.


TRUNCATE `cache_bootstrap`;
TRUNCATE `cache_config`;
TRUNCATE `cache_container`;
TRUNCATE `cache_data`;
TRUNCATE `cache_default`;
TRUNCATE `cache_discovery`;
TRUNCATE `cache_dynamic_page_cache`;
TRUNCATE `cache_entity`;
TRUNCATE `cache_menu`;
TRUNCATE `cache_page`;
TRUNCATE `cache_render`;
TRUNCATE `cache_rest`;
TRUNCATE `cachetags`;
TRUNCATE `cache_toolbar`;

Step 2# How to clear cache by Drush command in Drupal8 :

Open your terminal and run given below Drush command:


drush cr all

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here