jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/389887 )

Change subject: hooks: Remove redundant wgMemc check in onSetup
......................................................................


hooks: Remove redundant wgMemc check in onSetup

This is run on all requests and not actually useful because
the EventLogging extension doesn't use the (deprecated) wgMemc
variable anywhere.

The place where it once (long ago) used it (RemoteSchema) no longer
depends on objectcache being configured because it uses CACHE_ANYTHING
which has a CACHE_DB fallback.

Change-Id: I8636adb6bf3c3149719e53c94ebc419c9d1d1030
---
M includes/EventLoggingHooks.php
1 file changed, 0 insertions(+), 6 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/EventLoggingHooks.php b/includes/EventLoggingHooks.php
index c6a8265..384bd43 100644
--- a/includes/EventLoggingHooks.php
+++ b/includes/EventLoggingHooks.php
@@ -17,12 +17,6 @@
         * configuration variable (if any).
         */
        public static function onSetup() {
-               global $wgMemc;
-
-               if ( get_class( $wgMemc ) === 'EmptyBagOStuff' ) {
-                       wfDebugLog( 'EventLogging', 'No suitable memcached 
driver found.' );
-               }
-
                foreach ( [
                        'wgEventLoggingBaseUri',
                        'wgEventLoggingDBname',

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I8636adb6bf3c3149719e53c94ebc419c9d1d1030
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/EventLogging
Gerrit-Branch: master
Gerrit-Owner: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: Catrope <r...@wikimedia.org>
Gerrit-Reviewer: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: Legoktm <lego...@member.fsf.org>
Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: Ottomata <ao...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to