How Can We Help?
< All Topics
Print

Cache Clearing in Drupal: A Step-by-Step Guide for Optimization

a) How do I clear the cache using the admin interface ?

1. First, navigate to Configuration to select Development and click Performance (admin/config/development/performance) in the Manage administrative menu.

2. Then, click Clear All Caches.

3. Finally, the page will display a message at the top indicating that the cache has been cleared.

b) How do I clear the cache using Drush ?

1. First, the command drush cache-rebuild is used to clear and rebuild all site cache data, resulting in the output messageCache rebuild completed“.

2. You can also use the command drush cc to view a list of caches and select a specific cache to clear, resulting in the following output:

drupal

3. Then, enter the associated number and press “Enter” to proceed to clear a cache.

Table of Contents