Topic on Extension talk:CategoryTree

force categorytree to update when add new page.

10
Summary by Sarise298
Siggiae (talkcontribs)

I am invoking categorytree with the syntax {{#categorytree:Embryo|mode=pages|showcount|depth=2 etc. When I create a new page and add it to the category Embryo, categorytree will not list the new page. I can close/open the page that invoked categorytree, login again with no effect. If I look directly at the page Category:Embryo the new member page is listed immediately. The only way I can get the {{#categorytree:Embryo etc to update is to resave the page where it occurs. Same behavior if I use the tag syntax.

There must be a better way, I thought this function was dynamic. No obvious warnings of this behavior on the relevant help page or in discussions. Suggestions?

91.192.31.192 (talkcontribs)

I'm also seeing this. shouldn't it populate the tree automaticly?

178.251.183.178 (talkcontribs)

yes it should make the tree grow even tho right not my tree isnt growing

SmartK (talkcontribs)

We would also like to know if there is a "fix" for this. I have noticed that updates of pages and categories are shown in categorytree with a long time difference. Maybe we have to run some kind of job to update the database in the background? I can reproduce this with mediawiki 1.27.0.

79.122.187.86 (talkcontribs)

I confirm the issue too. MW 1.27.1

Dturtill (talkcontribs)
Dturtill (talkcontribs)

There is a possible temp fix for this if you disable Caching for your wiki then they change instantly to do this add the following at the bottom of your LocalSettings.php file.

$wgEnableParserCache = false; $wgCachePages = false;

Johnywhy (talkcontribs)

thx for that, could be useful for other things!

but, doesn't seem to fix CategoryTree...

This post was hidden by FDMS4 (history)
Reply to "force categorytree to update when add new page."