Revert "objectcache: detect default getWithSetCallback() set options"
[lhc/web/wiklou.git] / includes / db / MWLBFactory.php
index 5a5c46c..42ef685 100644 (file)
@@ -133,25 +133,6 @@ abstract class MWLBFactory {
                return $lbConf;
        }
 
-       /**
-        * @param LBFactory $lbf New LBFactory instance that will be bound to $services
-        * @param MediaWikiServices $services
-        */
-       public static function setCacheUsageCallbacks( LBFactory $lbf, MediaWikiServices $services ) {
-               // Account for lag and pending updates by default in cache generator callbacks
-               $wCache = $services->getMainWANObjectCache();
-               $wCache->setDefaultCacheSetOptionCallbacks(
-                       function () use ( $lbf ) {
-                               return $lbf->declareUsageSectionStart();
-                       },
-                       function ( $id ) use ( $lbf ) {
-                               $info = $lbf->declareUsageSectionEnd( $id );
-
-                               return $info['cacheSetOptions'] ?: [];
-                       }
-               );
-       }
-
        /**
         * Returns the LBFactory class to use and the load balancer configuration.
         *