remove redis debug config var

This commit is contained in:
jimmoffet
2022-09-08 09:07:54 -07:00
parent 1f7fa07a79
commit 68e6efdad0
6 changed files with 25 additions and 50 deletions

View File

@@ -1,5 +1,3 @@
from flask import current_app
from app.extensions import redis_client
from app.notify_client import NotifyAdminAPIClient
@@ -50,7 +48,7 @@ class TemplateFolderAPIClient(NotifyAdminAPIClient):
'folders': list(folder_ids),
})
if template_ids and current_app.config['NOTIFY_ADMIN_API_CACHE_ENABLED']:
if 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')