aboutsummaryrefslogtreecommitdiffstats
path: root/includes/deferred/HTMLCacheUpdate.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove HTMLCacheUpdateMatěj Suchánek2022-11-081-61/+0
| | | | | | It has been deprecated since 1.34 and it is unused. Change-Id: Id2042eb7c2077c650c42aef9484ca31117a4ad0b
* Hard deprecate HTMLCacheUpdateMatěj Suchánek2022-07-111-1/+3
| | | | | | The class has been deprecated since 1.34 and it is unused. Change-Id: If62eb4d7526f0238a5ddbeb650396ce604799d20
* Replace deprecated JobQueueGroup::singleton()Umherirrender2022-01-271-1/+2
| | | | Change-Id: Icdb301d352d302f70fefba9b40df2368cb217fd2
* Deferred updates: remove Title from method signatures.daniel2021-05-111-6/+8
| | | | | | | | This allows deferred update tasks to be constructed with a PageIdentity rather than a Title instance. Bug: T278459 Change-Id: Ifa2888fdef9ecc97f5bf09ae0b3fa7be48a0e9ef
* Add small HtmlCacheUpdater service class to normalize purging code (2)Aaron Schulz2020-04-141-5/+2
| | | | | | | | | | | | | | | | | | | This is a re-submit of 35da1bbd7cb, which was accidentally merged before CR (and reverted with aa4da3c2e8e). 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
* Set method visibility for various constructorsUmherirrender2019-12-031-1/+1
| | | | Change-Id: Id3c88257e866923b06e878ccdeddded7f08f2c98
* Cleanup field visibility and comments in CdnCacheUpdate and HTMLCacheUpdateAaron Schulz2019-09-111-8/+7
| | | | Change-Id: Ifbdc3e845aee9c6785c7813f6c955da4bfbe2bc8
* Revert "Add small HtmlCacheUpdater service class to normalize purging code"Daniel Kinzler2019-08-071-10/+17
| | | | | | | | This reverts commit 35da1bbd7cb8b4414c4fbcf331473f1024bc638d. Reason for revert: wrong tab, wrong patch. Ooops. Change-Id: I5828fff6308d43460a3b2b10f60996409181f8b3
* Add small HtmlCacheUpdater service class to normalize purging codeAaron Schulz2019-08-061-17/+10
| | | | | | | | | | | | | | | 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 Change-Id: Ic453b189a40109a73a9426538608eea87a76befa
* Add action/user tracking to html cache purge jobsAaron Schulz2017-10-301-3/+13
| | | | Change-Id: Ic7155a7303debfaf26b13cb836497ccbc89ea238
* Make HTMLCacheUpdate always use the job queueAaron Schulz2015-11-301-18/+2
| | | | | | | | | * This puts these updates behind the JobRunner lag checks * Made HTMLCacheUpdateJob::newForBacklinks() method, which, along with lazyPush(), obsoletes this class. Bug: T95501 Change-Id: I934de63bb6fe9e9b7abae157f0b3b2dbfd3188e1
* Automatically deduplicate root jobs on insertionAaron Schulz2015-06-031-1/+0
| | | | | | * This makes lazyPush() simple to use in more cases Change-Id: I22e74485eaf3120e5669c5ee55dc7ab7310d7300
* Use lazyPush() instead of push() in a few places for jobsAaron Schulz2015-05-181-1/+1
| | | | Change-Id: I56661ea29988e4ee217a63f4c3ffcb78333cc454
* Explicitly mark HTMLCacheUpdateJob jobs that are recursive for clarityAaron Schulz2015-02-151-2/+1
| | | | Change-Id: I75dbe719ef034d4714d4d8262d1dee9fa78ba76b
* Remove obvious function-level profilingChad Horohoe2015-01-071-2/+0
| | | | | | | | | | | Xhprof generates this data now. Custom profiling of various sub-function units are kept. Calls to profiler represented about 3% of page execution time on Special:BlankPage (1.5% in/out); after this change it's down to about 0.98% of page execution time. Change-Id: Id9a1dc9d8f80bbd52e42226b724a1e1213d07af7
* Tweaked HTMLCacheUpdate immediate run tresholdAaron Schulz2014-05-281-2/+2
| | | | Change-Id: I123c27862821e01fe232f55d984905fcda2a2498
* Update documentation and formatting for includes/deferred/Siebrand Mazeland2013-11-201-5/+4
| | | | Change-Id: I56f35be6e549aec13c4fbad5ee6301aa29358031
* Update formatting on includes/deferred/Siebrand Mazeland2013-11-201-1/+1
| | | | Change-Id: Id3f143eae3781b26dcbc3ba63a566b7a6006c0cc
* Move the DeferredUpdates hierarchy to its own directoryTim Starling2013-11-041-0/+71
The grouping makes at least as much sense as job/, and certainly makes more sense than cache/. With directories named after base classes, it is fairly easy to tell what should go where. The grouping of DeferredUpdates, DataUpdate and CallableUpdate would surely be uncontroversial. The move of SearchUpdate out of search/ demonstrates the conflict between arrangement by module versus arrangement by type, which is the most difficult design question here. I think arrangement by type is more consistent with e.g. the arrangement of the core root, i.e. tests/, resources/, maintenance/, etc. where a given feature will have its files split up into a mostly type-based hierarchy. I also tidied up AutoLoader.php by moving includes/content to the correct location, sorted alphabetically by subdirectory. Verified with AutoLoaderTest. Change-Id: Ib369411d0caca38e72978084aa57348f1b892ed0