Don't let LinkCache grow indefinitely
authorKunal Mehta <legoktm@gmail.com>
Sun, 26 Jul 2015 23:07:59 +0000 (16:07 -0700)
committerKunal Mehta <legoktm@gmail.com>
Mon, 27 Jul 2015 17:26:46 +0000 (10:26 -0700)
commit32d1017e7d779effabb719f513b3cd346bfa814b
tree831d12200e1c5492c3dfbfc59b8c908873f3b882
parent2c44bef931f846a6e17ff8f6f9dfec2190cc0742
Don't let LinkCache grow indefinitely

Especially in long running maintenance scripts, this can be problematic.

LinkCache is now LRU-based, and will store a maximum of 10,000 good titles,
and 10,000 bad ones.

LinkCache::getGoodLinks() and getBadLinks() are deprecated since they
problematic to support in this implementation and are unused.

Bug: T106998
Change-Id: I1328149d65a5e75a5d6e10cb2686a099562a1847
includes/cache/LinkCache.php