Go to file
Sam Smith 8b8db66dd1 Cache "morelike" requests for all users
In order to minimize loading time of RA for as many users as possible,
we need to maximize the number of users that can be served by our edge
caches.

Currently, if you're logged in, then the API uses your language by
default and so responses are always private, i.e. they shouldn't be
cached by a shared cache and can be cached by the browser.

By requesting that the response be in the language of the content, the
API ignores your language and responses become public, i.e. they can be
cached in a shared cache and can be cached by the browser.

Changes:
* Add the `uselang=content` parameter to the morelike request
* Add the `maxage=86400` parameter to the morelike request, allowing the
  browser to cache the response for 24 hours, which'll save the device
  even making the request

Bug: T126455
Change-Id: I6216a088d865f27f7cc3725fc311191da42a27ba
2016-09-05 11:33:12 +01:00
i18n Localisation updates from https://translatewiki.net. 2016-08-27 23:27:15 +02:00
images/BetaFeatures Make RelatedArticles available as a beta feature 2015-11-25 20:43:51 +05:00
includes Add documentation 2016-08-29 15:59:57 -04:00
resources Cache "morelike" requests for all users 2016-09-05 11:33:12 +01:00
tests Remove uncessary ParserClearState hook 2016-07-28 15:55:02 -07:00
.gitignore build: Updating mediawiki/mediawiki-codesniffer to 0.7.1 2016-05-09 16:59:15 -07:00
.gitreview Make the master branch default 2016-01-26 13:41:08 -05:00
.jscsrc build: Simplify Grunt configuration 2015-11-10 18:07:15 +00:00
.jshintignore Add extension boilerplate 2015-10-07 15:48:26 +01:00
.jshintrc Update packages 2015-12-07 21:00:56 +00:00
.rubocop.yml Rake entry point and rubocop fix up 2016-01-06 16:57:22 +01:00
composer.json build: Updating mediawiki/mediawiki-codesniffer to 0.7.2 2016-05-27 18:23:53 -07:00
extension.json Use SidebarBeforeOutput hook instead of echo'ing HTML 2016-07-29 20:34:40 -07:00
Gemfile Upgrade mediawiki_selenium in Gemfile 2016-08-04 15:49:40 -07:00
Gemfile.lock Upgrade mediawiki_selenium in Gemfile 2016-08-04 15:49:40 -07:00
Gruntfile.js build: Simplify Grunt configuration 2015-11-10 18:07:15 +00:00
HISTORY Release 2.1.0 2015-12-14 09:40:11 -08:00
package.json build: Updating development dependencies 2015-12-29 21:06:31 +00:00
phpcs.xml Add extension boilerplate 2015-10-07 15:48:26 +01:00
Rakefile Migration of browsertests* Jenkins jobs to selenium* jobs 2016-04-25 19:35:20 +02:00
README Add simple README 2015-11-23 23:10:02 +05:00
RelatedArticles.i18n.magic.php build: Updating mediawiki/mediawiki-codesniffer to 0.7.1 2016-05-09 16:59:15 -07:00
RelatedArticles.php Use extension registration 2015-10-07 15:54:07 +01:00

For information on how to install and use this extension, please see:
    <https://www.mediawiki.org/wiki/Extension:RelatedArticles>