jenkins-bot has submitted this change and it was merged.
Change subject: Purge pages with blank content beyond the PP limit report
......................................................................
Purge pages with blank content beyond the PP limit report
Change-Id: I1d7969a9d56218f1e06bc542436f4eb42bbfc9f2
---
M wmf-config/CommonSettings.php
1 file changed, 15 insertions(+), 0 deletions(-)
Approvals:
Ori.livneh: Looks good to me, approved
jenkins-bot: Verified
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index c7037ec..fcb14f7 100755
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -238,6 +238,21 @@
return true;
};
+// Temporary hack to purge squid for pages with empty page content. Follow-up
+// from site outage. -- Chad, 2015-10-14
+$wgHooks['RejectParserCacheValue'][] = function( ParserOutput $parserOutput,
$page, ParserOptions $popts ) {
+ $text = trim( $parserOutput->getText() );
+ if ( strpos( "<!-- \nNewPP limit report", $text ) === 0 ) {
+ $title = $page->getTitle();
+ LoggerFactory::getInstance( 'T115505' )->info(
+ 'Purging empty content page: ' .
$title->getPrefixedDBkey()
+ );
+ $title->purgeSquid();
+ return false;
+ }
+ return true;
+};
+
$wgFileStore['deleted']['directory'] =
"/mnt/upload7/private/archive/$site/$lang";
# used for mysql/search settings
--
To view, visit https://gerrit.wikimedia.org/r/246290
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1d7969a9d56218f1e06bc542436f4eb42bbfc9f2
Gerrit-PatchSet: 4
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits