Clear the organisation cache when a service's organisation is changed.

The /organisations page was showing the wrong live services count after a change is made to the service organisation.
This commit is contained in:
Rebecca Law
2021-01-12 13:45:28 +00:00
parent 4e99cc1448
commit c36180741b

View File

@@ -64,6 +64,7 @@ class OrganisationsClient(NotifyAdminAPIClient):
@cache.delete('service-{service_id}')
@cache.delete('live-service-and-organisation-counts')
@cache.delete('organisations')
def update_service_organisation(self, service_id, org_id):
data = {
'service_id': service_id