mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-02 16:31:31 -05:00
This will make it easier to add another test / feature to clear all the cache keys. It's debatable which of "sum" and "max" is useful: - "max" is a better (although still not accurate) indicator of the number of "things" affected e.g. templates, services, etc. - "sum" makes sense in places where "max" doesn't e.g. when we clear the "organisations" group, which doesn't equate to individual orgs. Using "sum() ... across" seems like a reasonable compromise and makes it clear that we're iterating over different kinds of keys. While the pluralisation is nice, I don't think it's worth the effort to make it work for both "object(s)" and "format(s)".