jenkins-bot has submitted this change and it was merged. Change subject: Use getLocalServerObjectCache() service ......................................................................
Use getLocalServerObjectCache() service Change-Id: I425c71a999951dc8d6923e0b09067f7919a85af5 --- M includes/Hooks.php M profiles/PhraseSuggesterProfiles.php 2 files changed, 4 insertions(+), 2 deletions(-) Approvals: Krinkle: Looks good to me, but someone else must approve Cindy-the-browser-test-bot: Looks good to me, but someone else must approve EBernhardson: Looks good to me, approved jenkins-bot: Verified Objections: Smalyshev: There's a problem with this change, please improve diff --git a/includes/Hooks.php b/includes/Hooks.php index e480bde..d87d373 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -208,7 +208,7 @@ $wgCirrusSearchMoreLikeThisMaxQueryTermsLimit, $wgCirrusSearchMoreLikeThisFields; - $cache = \ObjectCache::getLocalServerInstance(); + $cache = MediaWikiServices::getInstance()->getLocalServerObjectCache(); $lines = $cache->getWithSetCallback( $cache->makeKey( 'cirrussearch-morelikethis-settings' ), 600, diff --git a/profiles/PhraseSuggesterProfiles.php b/profiles/PhraseSuggesterProfiles.php index d2990a4..11d7430 100644 --- a/profiles/PhraseSuggesterProfiles.php +++ b/profiles/PhraseSuggesterProfiles.php @@ -1,6 +1,8 @@ <?php namespace CirrusSearch; +use MediaWiki\MediaWikiServices; + /** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -115,7 +117,7 @@ $wgCirrusSearchPhraseSuggestPrefixLengthHardLimit, $wgCirrusSearchPhraseSuggestAllowedMode; - $cache = \ObjectCache::getLocalServerInstance(); + $cache = MediaWikiServices::getInstance()->getLocalServerObjectCache(); $lines = $cache->getWithSetCallback( $cache->makeKey( 'cirrussearch-didyoumean-settings' ), 600, -- To view, visit https://gerrit.wikimedia.org/r/313350 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I425c71a999951dc8d6923e0b09067f7919a85af5 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/CirrusSearch Gerrit-Branch: master Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: Cindy-the-browser-test-bot <bernhardsone...@gmail.com> Gerrit-Reviewer: DCausse <dcau...@wikimedia.org> Gerrit-Reviewer: EBernhardson <ebernhard...@wikimedia.org> Gerrit-Reviewer: Gehel <gleder...@wikimedia.org> Gerrit-Reviewer: Krinkle <krinklem...@gmail.com> Gerrit-Reviewer: Manybubbles <never...@wikimedia.org> Gerrit-Reviewer: Smalyshev <smalys...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits