[Drupal] How to clear the Drupal cache?

| | 1 min read

When a user frequently visits a webpage, the browser automatically saves or in other words caches that particular page. This helps the user to access those pages in future which saves time. However due to caching, the changes made on a site do not reflect at once and its not useful during development or testing of a Drupal site. Therefore it is important that testers clear the cache before they start testing. Caching can be performed by both the site and the browser. Read on to know how to clear the Drupal cache.

How to clear site's cache in Drupal

The administrator can clear cache in two ways. He/she can just 'Flush all caches' or he/she can access it from the 'Performance' menu. Have a look at the steps below.

  1. Log in as administrator.
  2. Mouse over the 'admin-menu-icon' (on the menu bar), and click the option "Flush all caches".
  3. As a result, a message ('Caches cleared') will be displayed.

For clearing the cache from performance tab, follow the steps below:

  1. Log in as administrator.
  2. Select the option 'Performance' under Site configuration on the menu bar.
  3. Click the button 'Clear cached data'.

Caching increases the performance of a site. Implementing 'Boost module' can also increase the performance of your site. If you are in search of steps involved in testing Boost caching, you can go through the article - how to test boost caching on a Drupal site.