How to set a menu to not cache in Drupal 6
public
group: Drupal Dojo
Aaron-Hawkins - Wed, 2008-09-17 10:29
Hello Everyone,
I have been working with the new Drupal 6 hook_menu, and have discovered that hook_menu in D6 no longer accepts $may_cache or !$may_cache as arguments. I have a menu which writes out some links information dynamically, and I can't figure out how to stop it from caching the menu.
I have searched for an answer and I found a very vague reference to the use of hook_init and hook_link_save, but there was no example of how to implement this. Does anyone know how to to it properly?
Thanks,
Dojo Tags: dojo-howto · menu system
Sitewide tags: menu system



Also interested
I recently struggled with how to add tabs to certain node-types in D6 (something I used to use $may_cache for). The solution, as it turned out, is quite clean - much nicer than the D5 way: http://drupal.org/node/307510
I know that doesn't help you, but I'm confident there's a snappy little solution with the new menu system. I'll be interested in what comes up in this forum thread.
got it
page 71 of Pro Drupal Development (2nd edition): "Defining a Title Callback"
If you don't have the book, then check out: http://drupal.org/node/140311