Skip to content

Add generic WebDAV metadata cache - #646

Open
taglia wants to merge 1 commit into
internxt:mainfrom
taglia:pr/webdav-generic-cache
Open

Add generic WebDAV metadata cache#646
taglia wants to merge 1 commit into
internxt:mainfrom
taglia:pr/webdav-generic-cache

Conversation

@taglia

@taglia taglia commented Jul 26, 2026

Copy link
Copy Markdown

Summary

This adds a short-lived generic metadata cache for WebDAV item lookups and folder listings.

The cache is used by WebDAV handlers for repeated PROPFIND, GET, HEAD, PUT, DELETE, MOVE, and MKCOL lookup paths, and is invalidated on write operations.

Why

WebDAV clients often issue repeated metadata requests for the same paths during backup and restore workflows. Without a short-lived cache, these requests repeatedly hit Drive metadata APIs even when the state has just been fetched or mutated by the same WebDAV process.

Behavior

  • Caches Drive file/folder metadata and folder contents briefly.
  • Invalidates affected paths and parent folder listings after mutations.
  • Keeps existing WebDAV semantics unchanged.
  • Does not add client-specific path matching or backup-system-specific behavior.

Tests

  • Updated WebDAV tests to clear cache state between tests.
  • Verified WebDAV handler coverage for lookup and mutation paths.
  • Verified targeted auth/WebDAV tests locally.

@taglia
taglia requested a review from larryrider as a code owner July 26, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant