mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-16 11:20:12 -04:00
The page which shows the count of phones does some logic based on how close the ‘will get’ and ‘likely to get’ numbers are. This means it accesses the `BroadcastMessage.count_of_phones` and `BroadcastMessage.count_of_phones_likely` properties multiple times. These properties are computed fresh every time, and are quite expensive to compute. By caching them in memory we can cut the page load time approximately in half.