Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

(Portal) mods tampering with the cache key for menu buttons?

Aloittaja andershz, lokakuu 18, 2013, 04:35:10 AP

« edellinen - seuraava »

andershz

When caching level is set to 2 or higher SMF stores the list of menu buttons in the cache using a statement like
cache_put_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], ...

Simple Portal modifies the cache key to
cache_put_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'] . '-' . empty($context['disable_sp']), ...

Is anyone aware of any other mods modifying this cache key? Portal mods are probably the prime candidates.

Yes, I'm aware that this board isn't supposed to be about mods, but I can't really post this in all 2346 topics in the Modifications and Packages board.

Arantor

SP is the only one to my knowledge. I still have no idea what the heck we're caching the menu anyway.
Holder of controversial views, all of which my own.


feline

It's a known problem that the menubutton hook don't work correct if cache level 2 activatet. That I have postet years ago ...

Arantor

You did indeed. I still have no idea why it should be cached.
Holder of controversial views, all of which my own.


Advertisement: