mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user