Skip to content

[6.x] Fix Cached Pages count for multi-site setups#14726

Merged
jasonvarga merged 4 commits into
6.xfrom
improve-cache-utility-multisite-pages-count
May 26, 2026
Merged

[6.x] Fix Cached Pages count for multi-site setups#14726
jasonvarga merged 4 commits into
6.xfrom
improve-cache-utility-multisite-pages-count

Conversation

@joshuablum
Copy link
Copy Markdown
Member

The cached pages count in the cache utility only includes URLs cached for the CP host site. Switching sites in the CP then shows a count of 0 even when cached pages exist. This is not an issue for multi-sites using a single domain and directory structure (like /de, /fr...) but only when using different subdomains or entirely different domains.

Fixing this by aggregating the URL/pages count across every cached domain returned by AbstractCacher::getDomains() instead of relying on the implicit current domain. This gives a single global count of cached pages.

@jasonvarga jasonvarga merged commit bcfa63d into 6.x May 26, 2026
17 checks passed
@jasonvarga jasonvarga deleted the improve-cache-utility-multisite-pages-count branch May 26, 2026 14:14
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.

2 participants