Forum:Changes in Templates not showing in Category

I've recently altered a template (this one) so that instead of just adding the article (e.g. Spell Rebound) to the "Spell" category it adds it to "Class Spell" category (e.g. Feca Spell). However, while the articles correctly show and link to their new category.. the old categories still show the article, and the new category shows up as empty.

Is there some sort of delay between a template being changed, and the categories recognising the change? Or is there something I need to "nudge" so that the changes are recognised?

I have found one "solution" which is to manually add the new category to each article (which puts that article in the right category), and then delete the addition afterward (it doesn't revert back to the "incorrect state").

Any help is appreciated --Defunc7 16:53, February 19, 2010 (UTC)


 * This looks like a cache problem to me; I can't find anything wrong with the template. Wait for while and see what happens. Wjxhuang,  the 888th Avatar  {Talk} 02:38, February 20, 2010 (UTC)


 * Yeah, generally templates with included categories always work right for me by themselves, although the internal re-categorizing tends to lag now and then... waiting a day or less usually fixes it. I suggest to not add the categories manually, as there would be no reason for it not to fix itself and that would make the template's category function useless...  ( C rynsos Talk 00:59, February 21, 2010 (UTC)

If you have a template on a page, and then you change the template (like to add/remove a category), while the immediate visual effects show on the page (ie, new categories being listed at the bottom), the internal effects of the change to the template DONT happen immediately (ie, they wont show on the category page). If they did, changing a template that was used on thousands of pages would grind the server to a halt. Instead they at put into a background work queue, and done in chunks. The reason that adding them manually to the pages works, is that when a page is edited and saved, all internal links for that page are processed RIGHT NOW (and any in the queue for that name are marked as invalid). You can either nullsave every page using that template (just open the edit view, and hit save)(which is a giant waste of time and resources), or you can wait for the job queue to process, and all the pages get internally added to the category tables. See Help:Job queue --Uberfuzzy 02:03, February 21, 2010 (UTC)