This patch caches popups_get_popups() and the calls to hook_popups()

CommentFileSizeAuthor
popupscache.patch1.52 KBrobloach

Comments

starbow’s picture

Rob - ok so the cache gets cleared automatically whenever a new module is enabled or disabled, right?

robloach’s picture

Yup! The cache is cleared whenever a module is enabled or disabled. I added that $reset flag just incase we want to force the cache to clear. Probably won't ever need to reset the cache ourselves, unless the popups change based on a saved setting, in which case a popup_get_popups(TRUE); would do the trick.

starbow’s picture

Status: Needs review » Fixed

Great. In it goes. A lot of the next release of popups api will have your name on it. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.