Skip to content

[stable35] perf(files): cache the mimetype table - #65448

Open
backportbot[bot] wants to merge 1 commit into
stable35from
backport/65430/stable35
Open

backportbot[bot] wants to merge 1 commit into
stable35from
backport/65430/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Oct 13, 2026

Copy link
Copy Markdown

Backport of PR #65430

Every request that reads a file cache entry loaded the whole mimetypes
table from the database. Keep it in the local cache instead. Mimetypes
are only ever added, so a stale cache can only miss new mimetypes: on a
miss the table is loaded from the database again, at most once per
request.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@backportbot
backportbot Bot requested a review from a team as a code owner October 13, 2026 07:20
@backportbot
backportbot Bot requested review from Altahrim, CarlSchwan, come-nc, icewind1991, salmart-dev, sorbaugh and susnux and removed request for a team October 13, 2026 07:20
@backportbot backportbot Bot added this to the Nextcloud 35.0.2 milestone Oct 13, 2026
@icewind1991
icewind1991 enabled auto-merge October 15, 2026 16:47

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants