Skip to content

Commit

Permalink
Make cache name more unique.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamghill committed Feb 1, 2021
1 parent 077846b commit 831118e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion django_unicorn/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 831118e

Please sign in to comment.