mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-24 01:49:42 -04:00
Merge pull request #2975 from alphagov/rename-redis-template-keys
Step 2 of renaming cache keys for templates
This commit is contained in:
@@ -55,7 +55,7 @@ class SerialisedTemplate(SerialisedModel):
|
||||
return cls(cls.get_dict(template_id, service_id)['data'])
|
||||
|
||||
@staticmethod
|
||||
@redis_cache.set('template-{template_id}-version-None')
|
||||
@redis_cache.set('service-{service_id}-template-{template_id}-version-None')
|
||||
def get_dict(template_id, service_id):
|
||||
from app.dao import templates_dao
|
||||
from app.schemas import template_schema
|
||||
|
||||
Reference in New Issue
Block a user