Use adaptive CDN TTLs for page views
commit4a3e3c95b387c5f1212d6d7dee4b9e5294cfb7a6
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 23 Aug 2016 04:10:13 +0000 (22 21:10 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 20 Oct 2016 23:22:31 +0000 (20 23:22 +0000)
treec5f202713a85e756906df83513e56bac1ee4424f
parent3f577abedae92a7cdb17b247df9adac8f8b4ab7e
Use adaptive CDN TTLs for page views

This makes frequently changed pages be less likely to be
seen in stale forms if purges are delayed or lost. Pages
that have not been edited for somewhat longer than the
nominal CDN cache TTL will retain the nominal TTL.

Category pages will adapt based on page_touched rather
than the last revision, given the possibility of constaintly
changing membership. With their lesser overall usage,
this is less risky than for Article, and also more useful.

Change-Id: If621aca2fb68e9f87a50c891dac8dc6ec7641f5c
includes/OutputPage.php
includes/page/Article.php
includes/page/CategoryPage.php