Steps to replicate the issue (include links if applicable):
- Set $wgNamespacesWithSubpages[ NS_MEDIAWIKI ] = false;
- Set up WANObjectCache with valid config.
- Visit action=info of a page in the MediaWiki namespace (build the cache)
- Set $wgNamespacesWithSubpages[ NS_MEDIAWIKI ] = true;
- Visit action=info of that page again.
What happens?:
Number of subpages of this page [INVALID] ([INVALID] redirects; [INVALID] non-redirects)
What should have happened instead?:
The subpage count is displayed correctly, and no errors in the log.
Or only display subpage counts if the cache has them, since this is not very important (so we don't need to re-generate the cache).
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):