Describe the bug
On very large systems with excess of 1M graphs, the setting to calculate the number of Graph Templates available for killing spikes can take several seconds to calculate. Therefore, re-calculating it for every page load slows the user interface appreciably.
Expected behavior
Cacti should only calculate these template values when on the settings page, and should cache it as well so as to not impact the user experience more than is required.