wiki.techinc.nl/tests/phpunit/includes/deferred
Aaron Schulz 3c7f29a6b9 Add small HtmlCacheUpdater service class to normalize purging code (2)
This is a re-submit of 35da1bbd7c, which was accidentally merged before
CR (and reverted with aa4da3c2e8).

The purge() method handles purging of both file cache and CDN, using
a PRESEND deferred update. This avoids code duplication and missing
file cache purge calls.

Also:
* Migrate HTMLCacheUpdate callers to just directly using HTMLCacheUpdateJob
* Add HtmlFileCacheUpdate class and defer such updates just like with CDN
* Simplify HTMLCacheUpdate constructor parameters
* Remove BacklinkCache::clear() calls which do nothing since the backlink
  query does not actually happen until the job runs

Bug: T230025
Change-Id: Ic1005e70e2c22d5bd1ca36dcdb618108ebe290f3
2020-04-14 03:19:07 +00:00
..
CdnCacheUpdateTest.php Add small HtmlCacheUpdater service class to normalize purging code (2) 2020-04-14 03:19:07 +00:00
DeferredUpdatesTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
LinksUpdateTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
RefreshSecondaryDataUpdateTest.php RefreshSecondaryDataUpdate: Commit before running sub-updates 2020-04-09 11:17:00 -04:00
SearchUpdateTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
SiteStatsUpdateTest.php tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00