Delete new format template cache when moving folders

This commit is contained in:
Leo Hemsted
2020-10-05 16:57:18 +01:00
committed by David McDonald
parent 6eccc66115
commit 8ec9fe96a9
2 changed files with 4 additions and 7 deletions

View File

@@ -49,10 +49,7 @@ class TemplateFolderAPIClient(NotifyAdminAPIClient):
})
if template_ids:
redis_client.delete(*map(
'template-{}-version-None'.format,
template_ids,
))
redis_client.delete(*(f'service-{service_id}-template-{id}-version-None' for id in template_ids))
@cache.delete('service-{service_id}-template-folders')
def update_template_folder(self, service_id, template_folder_id, name, users_with_permission=None):