MaxSem has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/51577


Change subject: Cap cache expiry to 1 day
......................................................................

Cap cache expiry to 1 day

Change-Id: I26b0e1582c229579df5c702ed6eb28e0a90bef3f
---
M includes/api/ApiMobileView.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/77/51577/1

diff --git a/includes/api/ApiMobileView.php b/includes/api/ApiMobileView.php
index b764e19..df9d7c4 100644
--- a/includes/api/ApiMobileView.php
+++ b/includes/api/ApiMobileView.php
@@ -159,7 +159,7 @@
                                throw new MWException( __METHOD__ . ": 
PoolCounter didn't return parser output" );
                        }
                        $html = $parserOutput->getText();
-                       $cacheExpiry = $parserOutput->getCacheExpiry();
+                       $cacheExpiry = min( 3600 * 24, 
$parserOutput->getCacheExpiry() );
                        wfProfileOut( __METHOD__ . '-parserOutput' );
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/51577
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I26b0e1582c229579df5c702ed6eb28e0a90bef3f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: MaxSem <maxsem.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to