From 8afb02b64a65b896cff2aa464ef2f40f6873a591 Mon Sep 17 00:00:00 2001 From: Baha Date: Mon, 29 Aug 2016 15:54:53 -0400 Subject: [PATCH] Cache `morelike` requrests The cache length is 24 hours. Bug: T126455 Change-Id: Icd328f70ced16cc43fc0ad62c8a1f49ce71d6369 --- .../ext.relatedArticles.readMore.gateway/RelatedPagesGateway.js | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/ext.relatedArticles.readMore.gateway/RelatedPagesGateway.js b/resources/ext.relatedArticles.readMore.gateway/RelatedPagesGateway.js index a9356212..46e77fcc 100644 --- a/resources/ext.relatedArticles.readMore.gateway/RelatedPagesGateway.js +++ b/resources/ext.relatedArticles.readMore.gateway/RelatedPagesGateway.js @@ -77,6 +77,7 @@ parameters.gsrnamespace = '0'; parameters.gsrlimit = limit; parameters.gsrqiprofile = 'classic_noboostlinks'; + parameters.smaxage = 86400; // 24 hours } else { return $.Deferred().resolve( [] ); }