Skip to content

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

Open
joshuablum wants to merge 3 commits into
6.xfrom
improve-cache-utility-multisite-pages-count
Open

[6.x] Fix Cached Pages count for multi-site setups#14726
joshuablum wants to merge 3 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.

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.

1 participant