Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I uncommented the code in the Guardfile that clears the theme registry with drush. On updating a layout.inc file guard gives the following error:
Change detected: layouts/mylayout/mylayout.layout.inc
'theme-registry' cache is not a valid cache type [error]
Cleared theme registry.
Drush doesn't like the command used in the guardfile:
drush cache-clear theme-registry
Using this works:
drush cache-clear 'theme registry'
The line in the Guardfile needs to be changed? Super Simple.
Would it be of help if I made a patch for this?
Comments
Comment #1
fubhy CreditAttribution: fubhy commentedWhat version of drush are you using?
"drush cc theme-registry" works for me.
I've never seen "theme registry" as a valid cache-clear key before.
Comment #2
janvonmulert CreditAttribution: janvonmulert commentedAhah thats what it is thanks fubhy.
Im using older Drush 4.5 (from ubuntu repo) and according to the thread here the "drush cc theme-registry" command is broken in that version.
For anyone else using Drush 4.5 change the Guardfile to this :
Comment #3
fubhy CreditAttribution: fubhy commentedI would recommend you upgrade Drush. 4.5 is *very* old ;).
Anyways, glad you figured it out... However, consider installing drush using one of the recommended methods (pear / source). @see https://github.com/drush-ops/drush