Last updated November 10, 2015. Created on November 21, 2008.
Edited by ashish_nirmohi, camorim, sarahjean, hansrossel. Log in to edit this page.

The contents of the .info file is cached in the database, so altering it will not be noticed by Drupal. Also if you add new tpl.php files or override new theme functions you will need to clear the theme cache before they will be active.

Do not confuse the cache with the theme registry. To clear the cache, do one of the following:

  • Click the "Clear all caches" button located under Performance. Remark that this button clears all caches, not only the theme cache. If you have a site with a lot of pages or a lot of traffic you might prefer to clear only the theme cache with one of the other methods below.
    • Drupal 7: Administration > Configuration > Development > Performance (admin/config/development/performance)
    • Drupal 6: Administer > Site configuration > Performance (admin/settings/performance)
  • Other methods:
    • Admin menu has clear cache links beneath the home icon.
    • Devel Block module of the Devel project provides an "Empty cache" link.
    • The API function drupal_theme_rebuild (D7) or drupal_rebuild_theme_registry (D6).
    • Some themes (Zen, Fusion, ...) provide a checkbox to rebuild the theme cache on every page, with a nice warning so you don't forget to turn this off.
    • Drush has a command line command: drush cc theme-registry.
    • The Magic module has a setting to 'Rebuild Theme Registry on Page Reload' that can be used with any theme.
  • Visiting the theme selection page will also clear the .info file cache.
    • Drupal 7: Administration > Appearance (admin/appearance)
    • Drupal 6: Administer > Site building > Themes (admin/build/themes)

If all of the above fails, you might also try to clear all caches

Looking for support? Visit the forums, or join #drupal-support in IRC.


jcalebm’s picture

This still doesn't clear the theme cache

msky’s picture

For drush version 4.5 cache-clear theme does not work. outputs: 'theme' cache is not a valid cache type

DiversiCon’s picture case someone else lands here, the correct syntax for clearing the theme registry via drush is as follows:

> drush cache-clear 'theme registry' -OR- drush cc 'theme registry'

aethr’s picture

> drush cache-clear 'theme registry'
> drush cc 'theme registry'

Give the error:
'theme registry' cache is not a valid cache type [error]

Tested on drush version 5.3 on Ubuntu server 10.04.

stemount’s picture


drush cc theme-registry

to clear theme registry with Drush

wafer’s picture

I am still strange that after a lot of heep of try I still unable to figure out how to disable my theme cache while developing a Drupal 8 theme.

itapplication’s picture

Drupal developer

Drupal Theme developer.


chavab_1’s picture

I installed a 'test' theme and then uninstalled it. I ran drush cache-rebuild and I also cleared all caches in the Configuration->Performance menu. However when I run drush config-export, to export my configuration from my development environment onto my staging environment, the list of files that get exported still include references to the 'test' theme even though I uninstalled it.

I looked at my database and in the cachetags table there are rows there that reference the 'test' theme that I uninstalled. I have a feeling these are the ones that get exported during the drush config-export. Is there any way I can clear these?? Because right now I can carry on with the drush config-import command on my staging environment because I get an error stating that it can't install the 'test' theme because it's not included. And it should install it because it shouldn't be there.

Any help would be appreciated. Thanx.

iantresman’s picture

I had tried everything to clear my Drupal 6 theme cache, and nothing seemed to work, and I could not get my modified theme to display the amendment.

Turns out that I had a duplicate page.tpl.php file, the wrong one in my theme root, the proper one in my theme's /templates directory.