Skip to content

Avoid occ circles:check from failing because of outdated cache values#2568

Open
salmart-dev wants to merge 1 commit into
masterfrom
fix/circles-check-apcu
Open

Avoid occ circles:check from failing because of outdated cache values#2568
salmart-dev wants to merge 1 commit into
masterfrom
fix/circles-check-apcu

Conversation

@salmart-dev

@salmart-dev salmart-dev commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

The occ circles:check command sets and reads values from IAppConfig, and so does the service called by it, to perform checks.

During the loopback check, the code sets the value in the app config for a dummy token, before issuing a request that reads this value. Since the app config can use caches, when the local cache is set to APCu, the cache is not shared between CLI and HTTP workers. This results in random failures caused by the fact that a worker may receive the HTTP request and still hold the out-of-date config value.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@salmart-dev salmart-dev self-assigned this Jul 1, 2026
@salmart-dev salmart-dev added this to the Nextcloud 35 milestone Jul 1, 2026
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
@salmart-dev salmart-dev force-pushed the fix/circles-check-apcu branch from 05ad1ea to a88f3ce Compare July 1, 2026 17:59
@salmart-dev

Copy link
Copy Markdown
Contributor Author

/backport to stable34

@salmart-dev

Copy link
Copy Markdown
Contributor Author

/backport to stable33

@salmart-dev

Copy link
Copy Markdown
Contributor Author

/backport to stable32

@salmart-dev

Copy link
Copy Markdown
Contributor Author

/backport! to stable33

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.

1 participant