How to set a menu to not cache in Drupal 6

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
PixelClever's picture

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

ryan_courtnage's picture

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

ryan_courtnage's picture

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

steven1350's picture

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