humanmade / humanmade/hm-swr-cache
Cache key not dependent on callback args and vice versa
- Dominant language
- PHP
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Having the cache key at least internally not factor in the `$callback_args` means this could behave unexpectedly when different callback args are passed, but the same cache key is provided.
I think this should be avoided as it's too easy to make a mistake and create difficult to debug problems.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue does not name any files, tests, or entry points. Start by locating the cache API that accepts the cache key and callback arguments, then determine how those values are currently related. Done should prevent identical cache keys with different callback arguments, and vice versa, without introducing unexpected cache behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100