Topic on Help talk:Extension:ParserFunctions

How to update parsed datas?

3
Dnsbl1 (talkcontribs)

I installed the Comments and VoteNY extension, retrieving number of comments and votes from a page on another page.

But it doesn't seem to update when comments or votes are added with this

{{NUMBEROFVOTESPAGE:page name}}

{{NUMBEROFCOMMENTSPAGE:page name}}

I tried to put $wgParserCacheType = CACHE_NONE;

but it doesn't seem to change much. The number of votes and comments stay.

Any idea?

Dinoguy1000 (talkcontribs)

Completely disabling caching is generally a bad idea. Do the numbers update if you force the page's cache to be cleared (e.g. by editing the page, or by using action=purge)? If so, then you should add a link to purge the page near where the numbers are displayed, with text like "update these counts" (the code [{{fullurl:{{FULLPAGENAME}}|action=purge}} update these counts] can be used as a base for this).

Dnsbl1 (talkcontribs)

I switched to using cache cause the extensions use it to retrieve datas. I tried after a few hours, ?action=purge update the page correctly and the correct number of comments are displayed, thanks for the idea of adding a link on the page.

Reply to "How to update parsed datas?"