Skip to content

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

Merged
salmart-dev merged 1 commit into
masterfrom
fix/circles-check-apcu
Jul 2, 2026
Merged

Avoid occ circles:check from failing because of outdated cache values#2568
salmart-dev merged 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

@salmart-dev

Copy link
Copy Markdown
Contributor Author

Completes: #2387 as the issue was more about the timing of the caching, than the order with which the config is set.

Comment thread lib/Command/CirclesCheck.php
@salmart-dev salmart-dev merged commit 9581dca into master Jul 2, 2026
44 checks passed
@salmart-dev salmart-dev deleted the fix/circles-check-apcu branch July 2, 2026 09:56
@backportbot

This comment was marked as resolved.

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.

3 participants