From c36180741b6014597b0eb6eaac77e370a2e5da9b Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Tue, 12 Jan 2021 13:45:28 +0000 Subject: [PATCH] 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. --- app/notify_client/organisations_api_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/notify_client/organisations_api_client.py b/app/notify_client/organisations_api_client.py index 617859cba..b94b45139 100644 --- a/app/notify_client/organisations_api_client.py +++ b/app/notify_client/organisations_api_client.py @@ -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