nextcloud / nextcloud/server

Update caches for federated shares in cron

Open
#7,488 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: federation feature: sharing
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Currently we check the status of federated shares often during a request to list the files. Especially with broken federated shares this can lead to huge slowdowns. https://github.com/nextcloud/server/pull/7485 tries to fix this a bit.

However, it will still result in a request every once in a while to be slow.

A better approach would be to have a cronjob running for all (incomming) federated shares to check the status.

As discussed: @MorrisJobke @schiessle

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the issue's proposed cronjob approach and the referenced pull request 7485 to understand the current federated-share status checks. Define the cron entry point and affected incoming-share handling, with completion meaning status checks no longer cause recurring slow requests during file-listing requests.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, cloud, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.