Just out of interest - is there any reason you're not using hook_init instead of hook_exit in radioactivity_node? I believe this would allow sites to run Aggressive caching...

Comments

skiminki’s picture

Status: Active » Closed (works as designed)

hook_init vs hook_exit: I used Drupal core module node_counter as an example. It used hook_exit() back then, and probably still does.

Aggressive caching: I doubt using hook_init helps. From /admin/performance-page: "The aggressive cache mode causes Drupal to skip the loading (boot) and unloading (exit) of enabled modules when serving a cached page." However, if you guess hook_init() would still work, please send a tested patch. The code changes should be trivial.