Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 60bf2e3

Browse files
authored
Prefix redis cache keys with cache: (#1203)
1 parent b2b90ea commit 60bf2e3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

services/bundle_analysis/notify/messages/commit_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def build_upgrade_message(self, context: CommitStatusNotificationContext) -> str
7272
)
7373

7474
def _cache_key(self, context: CommitStatusNotificationContext) -> str:
75-
return make_hash_sha256(
75+
return "cache:" + make_hash_sha256(
7676
dict(
7777
type="status_check_notification",
7878
repoid=context.repository.repoid,

services/notification/notifiers/status/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def maybe_send_notification(
271271
)
272272
head_commit = comparison.head.commit if comparison.head else None
273273

274-
cache_key = make_hash_sha256(
274+
cache_key = "cache:" + make_hash_sha256(
275275
dict(
276276
type="status_check_notification",
277277
repoid=head_commit.repoid,

0 commit comments

Comments
 (0)