Skip to content

perf: cache server checks in local cache, not session#53684

Open
ChristophWurst wants to merge 3 commits into
masterfrom
perf/cache-server-checks-local-cache
Open

perf: cache server checks in local cache, not session#53684
ChristophWurst wants to merge 3 commits into
masterfrom
perf/cache-server-checks-local-cache

Conversation

@ChristophWurst

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

Caching was added in owncloud/core#4441. It makes sense to cache the steps, but not on a user session level. The checks are global to the instance. Cache it for everyone, and make the cached value accessible to requests that do not use sessions.
Every time we read or write session the PHP session has to be opened. For a simple system that means disk IO, for a scaled setup that means network IO to contact Redis. Local cache (APCu) has low latency.

TODO

  • Do

Checklist

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 2. developing Work in progress labels May 20, 2026
@ChristophWurst ChristophWurst marked this pull request as ready for review May 20, 2026 18:58
@ChristophWurst ChristophWurst requested a review from a team as a code owner May 20, 2026 18:58
@ChristophWurst ChristophWurst requested review from ArtificialOwl, CarlSchwan, provokateurin and salmart-dev and removed request for a team May 20, 2026 18:58
@ChristophWurst

Copy link
Copy Markdown
Member Author

Let's do this

@provokateurin

Copy link
Copy Markdown
Member

What was missing? 😅

@ChristophWurst

Copy link
Copy Markdown
Member Author

IIRC I did this as a drive-by when I was working on something else, then I forgot about it 🙊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 🏗️ In progress

Development

Successfully merging this pull request may close these issues.

3 participants