Consider caching has_active_integrations? and has_active_hooks? data
About
If we look at Project#has_active_hooks?
it's true if there are project hooks, group hooks (in the EE version of the method), system hooks, or file hooks.
Caching this data somewhere (perhaps in settings tables?) would be ideal, but would be complex to cache correctly.
This is currently a Discussion topic rather than a proposal.
Edited by Luke Duncalfe