Gergo, good to know, thanks. Graph extension itself does not know how long
the data is valid - it simply gets a URL from which to get the pageviews
(or any other) data. At this point, only the person who writes the graph
template knows how long its valid for.
We could add an extra attribute to the graph, e.g. <graph refresh="60">
(number of minutes), to let graph extension update cache expiry.
On Thu, Feb 18, 2016 at 11:04 PM, Gergo Tisza <gtisza(a)wikimedia.org> wrote:
On Thu, Feb 18, 2016 at 9:02 AM, Yuri Astrakhan
<yastrakhan(a)wikimedia.org>
wrote:
It will be updated whenever the page containing
the template is
re-generated (e.g. the page is changed, or someone does a null-save). I
heard that every page is forcefully regenerated if its older than 30
days,
Yes, and extension tags embedded in the page can reduce that, so if the
graph has a way of knowing how long the data will be valid, it can tell
that to the parser via ParserOutput::updateCacheExpiry.
As a hacky manual workaround, you can put <div
style="display:none">{{CURRENTHOUR}}</div> into the page to force
hourly
refresh.
_______________________________________________
Wikimedia-l mailing list, guidelines at:
https://meta.wikimedia.org/wiki/Mailing_lists/Guidelines
New messages to: Wikimedia-l(a)lists.wikimedia.org
Unsubscribe:
https://lists.wikimedia.org/mailman/listinfo/wikimedia-l,
<mailto:wikimedia-l-request@lists.wikimedia.org?subject=unsubscribe>