DEV Community

Filimonov
Filimonov

Posted on

Clear the cache in Drupal 8

Via the browser

Go to Configuration → Performance:

admin/config/development/performance
Enter fullscreen mode Exit fullscreen mode

Image description

Press the "Clear cache" button

Via the admin toolbar

You must have the Admin Toolbar module installed and enabled:

composer require drupal/admin_toolbar ; drush en admin_toolbar_tools -y
Enter fullscreen mode Exit fullscreen mode

Hover over the Drupal logo and click the "Clear all caches" button:

Image description

Via Drush

Open a terminal. Go to the site folder and use the command:

drush cr
Enter fullscreen mode Exit fullscreen mode

Image description

Reload the page in the browser.

Via the Drupal Console

Open a terminal. Go to the site folder and use the command:

drupal cr
Enter fullscreen mode Exit fullscreen mode

Image description

Reload the page in the browser.

Via the Database

Go into PhpMyAdmin and clear the tables that contain the cache:

Image description

Top comments (0)