Allow platform admins to clear cached broadcasts

When we add a new property to the broadcast model, we need to delete any
cached broadcasts from Redis that are missing the new property. So this
adds an option to do this to the cache page in platform admin.

I’ve also tried to make it more obvious what the magic numbers in the
test fixture are doing.
This commit is contained in:
Chris Hill-Scott
2020-10-08 14:30:09 +01:00
parent 850571cb8c
commit 54d4fb2a6c
2 changed files with 12 additions and 4 deletions

View File

@@ -432,6 +432,9 @@ def clear_cache():
'live-service-and-organisation-counts',
'organisation-????????-????-????-????-????????????-name',
]),
('broadcast', [
'service-????????-????-????-????-????????????-broadcast-message-????????-????-????-????-????????????',
]),
])
form = ClearCacheForm()