Merge pull request #3767 from alphagov/clear-org-cache

Clear the organisation cache when a service's organisation is changed.
This commit is contained in:
Rebecca Law
2021-01-13 09:22:23 +00:00
committed by GitHub
2 changed files with 22 additions and 1 deletions

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