Skip to content

fix: more optimized caching for share target verification - #52045

Merged
icewind1991 merged 1 commit into
masterfrom
shared-target-verify-cache
Apr 9, 2025
Merged

fix: more optimized caching for share target verification#52045
icewind1991 merged 1 commit into
masterfrom
shared-target-verify-cache

Conversation

@icewind1991

Copy link
Copy Markdown
Member

Instead of caching the "validated" status per-share, instead track the latest share (by share id) that is validated.

This uses the fact that once a unique target is generated for the share, new files can't suddenly appear at the share target.
An exception to this is admin-created mount points (groupfolders, external storages, etc). So conflicts with other mount points is always done (but this is very cheap).

@icewind1991icewind1991 added the 3. to review Waiting for reviews label Apr 8, 2025
@icewind1991icewind1991 added this to the Nextcloud 32 milestone Apr 8, 2025
@icewind1991
icewind1991 requested a review from a team as a code ownerApril 8, 2025 13:40
@icewind1991
icewind1991 requested review from Altahrim, provokateurin and skjnldsv and removed request for a teamApril 8, 2025 13:40
@icewind1991
icewind1991force-pushed the shared-target-verify-cache branch from 83d2ab5 to 17b72f4CompareApril 8, 2025 14:39
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991
icewind1991 merged commit b82245d into masterApr 9, 2025
@icewind1991
icewind1991 deleted the shared-target-verify-cache branch April 9, 2025 12:35
@icewind1991

Copy link
Copy Markdown
MemberAuthor

/backport to stable31

@nickvergessen

Copy link
Copy Markdown
Member

❌ This might need reverting

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

Labels

3. to reviewWaiting for reviewsperformance 🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@icewind1991@nickvergessen@juliusknorr@provokateurin@skjnldsv