This patch caches popups_get_popups() and the calls to hook_popups()
| Comment | File | Size | Author |
|---|---|---|---|
| popupscache.patch | 1.52 KB | robloach |
This patch caches popups_get_popups() and the calls to hook_popups()
| Comment | File | Size | Author |
|---|---|---|---|
| popupscache.patch | 1.52 KB | robloach |
Comments
Comment #1
starbow commentedRob - ok so the cache gets cleared automatically whenever a new module is enabled or disabled, right?
Comment #2
robloachYup! 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.Comment #3
starbow commentedGreat. In it goes. A lot of the next release of popups api will have your name on it. Thanks!