Skip to content

[BugFix] Add object name to cache key#4982

Merged
joe-elliott merged 3 commits intografana:mainfrom
joe-elliott:fix-cache-keys
Apr 11, 2025
Merged

[BugFix] Add object name to cache key#4982
joe-elliott merged 3 commits intografana:mainfrom
joe-elliott:fix-cache-keys

Conversation

@joe-elliott
Copy link
Copy Markdown
Collaborator

@joe-elliott joe-elliott commented Apr 10, 2025

What this PR does:
Very old caching code assumed that we did not need to use the object name in the cache key. I believe this is technically still true and can't convince myself this is currently causing issues. However, from the perspective of the caching layer there's no way to know this and it absolutely should use the object name in the cache key.

  • This will temporarily break page cache keys, but they should quickly settle on the new key names.
  • Fixed TestCacheFor which wasn't really testing anything.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
@joe-elliott joe-elliott merged commit f4e7ba4 into grafana:main Apr 11, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants