https://meta.wikimedia.org/wiki/User:Yurik/US_Politics_Real_Time
Thanks Dario Taraborelli for the idea.
Very cool! Will it be updated automatically on a daily basis? :)
Cheers,
Deb
-- Deb Tankersley Product Manager, Discovery Wikimedia Foundation
On Wed, Feb 17, 2016 at 9:48 PM, Yuri Astrakhan yastrakhan@wikimedia.org wrote:
https://meta.wikimedia.org/wiki/User:Yurik/US_Politics_Real_Time
Thanks Dario Taraborelli for the idea.
discovery mailing list discovery@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/discovery
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, but I might be mistaken. We should at some point figure out a way to force-regenerate some of these graphs, but I am not yet sure how to approach that.
On Thu, Feb 18, 2016 at 7:55 PM, Deborah Tankersley < dtankersley@wikimedia.org> wrote:
Very cool! Will it be updated automatically on a daily basis? :)
Cheers,
Deb
-- Deb Tankersley Product Manager, Discovery Wikimedia Foundation
On Wed, Feb 17, 2016 at 9:48 PM, Yuri Astrakhan yastrakhan@wikimedia.org wrote:
https://meta.wikimedia.org/wiki/User:Yurik/US_Politics_Real_Time
Thanks Dario Taraborelli for the idea.
discovery mailing list discovery@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/discovery
discovery mailing list discovery@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/discovery
On Thu, Feb 18, 2016 at 9:02 AM, Yuri Astrakhan yastrakhan@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.
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@wikimedia.org wrote:
On Thu, Feb 18, 2016 at 9:02 AM, Yuri Astrakhan yastrakhan@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@lists.wikimedia.org Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l, mailto:wikimedia-l-request@lists.wikimedia.org?subject=unsubscribe
This is going to be a fun one to watch over the next many months. Thank for the link Yuri
On Wed, Feb 17, 2016 at 8:48 PM, Yuri Astrakhan yastrakhan@wikimedia.org wrote:
https://meta.wikimedia.org/wiki/User:Yurik/US_Politics_Real_Time
Thanks Dario Taraborelli for the idea.
discovery mailing list discovery@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/discovery
wikimedia-l@lists.wikimedia.org