mirror of
https://github.com/knadh/listmonk.git
synced 2025-12-05 16:00:03 +01:00
Prior to this patch, when a new campaign was created, the `to send` count of subscribers was counted from the subscriptions and added to the campaign to be displayed on the frontend. However, this had several issues: - On large databases, the count can be extremely slow, slowing down campaign creation. - The count was purely cosmetic. When a campaign starts, it's recounted (for real) anyway. - The count was also inaccurate. Changing the list on a campaign, or changes to the subscribers in a list never updated the count on the campaign, rendering it wholly incorrect sometimes. Closes #2431.