Skip to content

Commit 831118e

Browse files
committed
Make cache name more unique.
1 parent 077846b commit 831118e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

django_unicorn/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,9 @@ def _handle_component_request(
579579
cache = caches[get_cache_alias()]
580580

581581
# Add the current request `ComponentRequest` to the cache
582-
component_cache_key = f"{component_request.name}:{component_request.id}"
582+
component_cache_key = (
583+
f"unicorn:queue:{component_request.name}:{component_request.id}"
584+
)
583585
component_requests = cache.get(component_cache_key) or []
584586
component_requests.append(component_request)
585587

0 commit comments

Comments
 (0)