Skip to content

Commit

Permalink
use image url instead of id for cached response
Browse files Browse the repository at this point in the history
  • Loading branch information
sovaa committed May 26, 2021
1 parent d029fa0 commit 8486dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logistik/cache/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_response_key_from_request(self, handler: HandlerConf, request: dict):
handler_hash = self._hash_for(handler)
provider_id = request.get("provider", dict()).get("id", "-1")
user_id = request.get("actor", dict()).get("id", "-1")
image_id = request.get("object", dict()).get("id", "-1")
image_id = request.get("object", dict()).get("url", "").split("/")[-1].split(".")[0]

return RedisKeys.response_for(
provider_id=provider_id,
Expand Down

0 comments on commit 8486dca

Please sign in to comment.