Merge "Use {{int:}} on MediaWiki:Blockedtext and MediaWiki:Autoblockedtext"
[lhc/web/wiklou.git] / includes / jobqueue / utils / PurgeJobUtils.php
index ba80c8e..5d8a6cf 100644 (file)
@@ -37,7 +37,9 @@ class PurgeJobUtils {
                        return;
                }
 
-               $dbw->onTransactionIdle(
+               DeferredUpdates::addUpdate( new AutoCommitUpdate(
+                       $dbw,
+                       __METHOD__,
                        function () use ( $dbw, $namespace, $dbkeys ) {
                                $services = MediaWikiServices::getInstance();
                                $lbFactory = $services->getDBLoadBalancerFactory();
@@ -74,8 +76,7 @@ class PurgeJobUtils {
                                        );
                                        $lbFactory->commitAndWaitForReplication( __METHOD__, $ticket );
                                }
-                       },
-                       __METHOD__
-               );
+                       }
+               ) );
        }
 }