How to set a menu to not cache in Drupal 6

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by PixelClever on September 17, 2008 at 10:29am

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,

Comments

Also interested

Posted by ryan_courtnage on September 18, 2008 at 4:34am

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

Posted by ryan_courtnage on September 18, 2008 at 2:41pm

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

I am sorry, but this takes

Posted by steven1350 on July 4, 2011 at 5:11pm

I am sorry, but this takes the cake for the most useless reply I have ever seen on the internet

AltStyle によって変換されたページ (->オリジナル) /