From 831118e858362e5b1a2dbcff1433bfc9e6c56734 Mon Sep 17 00:00:00 2001 From: Adam Hill Date: Mon, 1 Feb 2021 10:13:56 -0500 Subject: [PATCH] Make cache name more unique. --- django_unicorn/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/django_unicorn/views.py b/django_unicorn/views.py index 84544584..dea7eb4e 100644 --- a/django_unicorn/views.py +++ b/django_unicorn/views.py @@ -579,7 +579,9 @@ def _handle_component_request( cache = caches[get_cache_alias()] # Add the current request `ComponentRequest` to the cache - component_cache_key = f"{component_request.name}:{component_request.id}" + component_cache_key = ( + f"unicorn:queue:{component_request.name}:{component_request.id}" + ) component_requests = cache.get(component_cache_key) or [] component_requests.append(component_request)