Mobile app version of vmapp.org
Login or Join
Shelley277

: MediaWiki: How do I force MediaWiki to update a certain Category:XXX page? Is it possible to force MediaWiki update a certain Category:XXX page? For example, a lot of pages used templates that

@Shelley277

Posted in: #Mediawiki

Is it possible to force MediaWiki update a certain Category:XXX page? For example, a lot of pages used templates that referred a category "Templates" causing every such page to be included to the "Template" category. That's obviously wrong. I have already fixed the templates by wrapping the "Templates" category into the noinclude tag, so now every page that use these templates are no longer categorized as "Templates". That's fine.

Article source:
{{stub}}

Template source BEFORE the fix:
This page is a stub
[[Category:Templates]]
Rendered article BEFORE the fix:
This page is a stub
Categories: Templates | Stubs
Category Templates BEFORE the fix:
Article
Template:Stub

Template source AFTER the fix:
This page is a stub
<noinclude>[[Category:Templates]]</noinclude>
Rendered article AFTER the fix:
This page is a stub
Categories: Stubs
Category Templates AFTER the fix:
Article <--- this is wrong
Template:Stub


But the list in the Category:Template seems to be frozen for really long time. I do remember that I had a similar case a half year ago, and I clearly watched the number of pages decreased slowly, but constantly. Now it got stuck. Is any categorization update status page available? (I'm almost sure that I remember someone told me it's performed by a background job) Or what am I doing wrong?


MediaWiki: 1.23.6
PHP: 5.4.38


Thanks in advance.



UPDATE: See here for more information in addition to the best answer here.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley277

1 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

I have two suggestions to try:

Purge

It looks like the update is showing on the article but not the category page, so a simple purge may do the trick.

To do that, pass the action=purge parameter to the category URL. (An easy way is to click the edit link to open the edit window, and replace action=edit with action=purge in the URL.)

Null edit

If the article is not updating after changing the template, your problem is the job queue, which can take a while to filter through, depending on load. On a case-by-case basis, performing a null edit on the article should solve your problem. From Meta-Wiki:


The most useful side-effect of a null edit is that it updates category pages, taking into account categories transcluded via templates. If a category has been added to or removed from a template since it was last transcluded on a page, then purging the cache will not update the category contents, but a null edit to the page (not the category) will – see Help:Category#Adding a category by using a template.


To do that, edit the article in question but make no changes. If you save the page, it will look like nothing happened (nothing is recorded in the page history or your contributions list), but that bypasses the job queue and forces the page to update based on the new version of the template.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme