Tweaked HTMLCacheUpdate immediate run treshold
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 27 May 2014 17:36:04 +0000 (10:36 -0700)
committerSpringle <springle@wikimedia.org>
Wed, 28 May 2014 07:03:08 +0000 (07:03 +0000)
Change-Id: I123c27862821e01fe232f55d984905fcda2a2498

includes/deferred/HTMLCacheUpdate.php

index 0713a05..54fa594 100644 (file)
@@ -54,8 +54,8 @@ class HTMLCacheUpdate implements DeferrableUpdate {
                        )
                );
 
-               $count = $this->mTitle->getBacklinkCache()->getNumLinks( $this->mTable, 200 );
-               if ( $count >= 200 ) { // many backlinks
+               $count = $this->mTitle->getBacklinkCache()->getNumLinks( $this->mTable, 100 );
+               if ( $count >= 100 ) { // many backlinks
                        JobQueueGroup::singleton()->push( $job );
                        JobQueueGroup::singleton()->deduplicateRootJob( $job );
                } else { // few backlinks ($count might be off even if 0)