Can't update hook_theme after clearing the cache I have a hook_theme instance in my template.php which outputs various components in my theme. I want to add an extra argument to one of the templates but no matter what I do it doesn't update. I have cleared the cache (using drush and not), removed the theme array, cleared cache and added back in. I have even truncated all the cache tables - but somehow it's still picking up the old function. Is there something stupid I have missed?

template.php

function MYTHEME_theme() {
  return array(

    'featured_blocks' =&gt; array(
      'arguments' =&gt; array(
        'blocks' =&gt; NULL,
        'image_format' =&gt; 'test!',
      ),
      'template' =&gt; 'featured-blocks',
      'path' =&gt; drupal_get_path('theme', 'MYTHEME') . '/templates/other'
    ),

  );
}


featured-blocks.tpl.php

&lt;?php

printr($blocks); // blocks are all here
print $image_format; // this is undefined!!!


Calling the hook theme

&lt;?php print theme('featured_blocks', array(
            'blocks' =&gt; $wrap-&gt;field_my_blocks,
            'image_format' =&gt; 'this is a test'
          )) ?&gt;
After doing a bit more reading I restarted my MAMP server and switched themes, then back again. I'm not sure which did it but it's working now...