Reinstate small category refresh logic in LinksDeletionUpdate
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 23 Apr 2019 23:59:35 +0000 (16:59 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 24 Apr 2019 00:07:07 +0000 (17:07 -0700)
commitd2331a68230d9e1793422f16fcd029f27f55e2cb
tree8ca4208d5ac39b0f3abcbc15f19631facad3880a
parent05c510ff9c072f06cce46da1e1a2b83e2ce6f9e1
Reinstate small category refresh logic in LinksDeletionUpdate

Add new Category::refreshCountsIfSmall() method that will do a non-locking
SELECT with LIMIT before deciding whether to do a full locking SELECT and
refresh. Call this from LinksDeletionUpdate.

Bug: T18036
Change-Id: I9de8311565988453b8e29a7f3d95d758182fcec1
includes/Category.php
includes/deferred/LinksDeletionUpdate.php