Skip to content

fix(memcache): restrict Redis evalSha fallback to NOSCRIPT#62064

Open
joshtrichards wants to merge 2 commits into
masterfrom
jtr/fix-memcache-redis-eval-fallback
Open

fix(memcache): restrict Redis evalSha fallback to NOSCRIPT#62064
joshtrichards wants to merge 2 commits into
masterfrom
jtr/fix-memcache-redis-eval-fallback

Conversation

@joshtrichards

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

Adjust OC\Memcache\Redis::evalLua() to only fall back from EVALSHA to EVAL when Redis reports NOSCRIPT.

The current implementation retries with the full Lua script whenever evalSha() returns false. This makes the fallback broader than necessary and can treat unrelated Redis failures the same as a missing cached script.

Restricting the fallback to NOSCRIPT keeps the existing behavior for missing script SHAs while allowing other failures to surface normally.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added this to the Nextcloud 35 milestone Jul 13, 2026
@joshtrichards joshtrichards added enhancement 2. developing Work in progress feature: caching Related to our caching system: scssCacher, jsCombiner... 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jul 13, 2026
@joshtrichards joshtrichards marked this pull request as ready for review July 13, 2026 16:34
@joshtrichards joshtrichards requested a review from a team as a code owner July 13, 2026 16:34
@joshtrichards joshtrichards requested review from ArtificialOwl, icewind1991, leftybournes and provokateurin and removed request for a team July 13, 2026 16:34
Signed-off-by: Josh <josh.t.richards@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement feature: caching Related to our caching system: scssCacher, jsCombiner...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant