Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(dav): skip non-calendar requests in webcal caching plugin #44511

Merged

Commits on Mar 27, 2024

  1. perf(dav): skip non-calendar requests in webcal caching plugin

    The webcal caching plugin is active when the X-NC-CalDAV-Webcal-Caching header is there.
    
    findPrincipalByUrl sends a request for /remote.php/dav/principals/users/admin/ using the caldavService which sets the header by default.[^1]
    
    As X-NC-CalDAV-Webcal-Caching only impacts calendar requests, we can skip non-calendar requests.
    
    [^1]: https:/nextcloud/calendar/blob/b3670f1805ef9ef952d6abe4e5334e37b5a14133/src/services/caldavService.js#L43
    
    Signed-off-by: Daniel Kesselberg <[email protected]>
    kesselb committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    4bdb473 View commit details
    Browse the repository at this point in the history