dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Soft deprecate DeferredStringifier class"
[lhc/web/wiklou.git]
/
includes
/
deferred
/
HTMLCacheUpdate.php
diff --git
a/includes/deferred/HTMLCacheUpdate.php
b/includes/deferred/HTMLCacheUpdate.php
index
db3790f
..
29846bf
100644
(file)
--- a/
includes/deferred/HTMLCacheUpdate.php
+++ b/
includes/deferred/HTMLCacheUpdate.php
@@
-26,7
+26,7
@@
*
* @ingroup Cache
*/
*
* @ingroup Cache
*/
-class HTMLCacheUpdate
implements Deferrable
Update {
+class HTMLCacheUpdate
extends Data
Update {
/** @var Title */
public $mTitle;
/** @var Title */
public $mTitle;
@@
-36,14
+36,24
@@
class HTMLCacheUpdate implements DeferrableUpdate {
/**
* @param Title $titleTo
* @param string $table
/**
* @param Title $titleTo
* @param string $table
+ * @param string $causeAction Triggering action
+ * @param string $causeAgent Triggering user
*/
*/
- function __construct( Title $titleTo, $table ) {
+ function __construct(
+ Title $titleTo, $table, $causeAction = 'unknown', $causeAgent = 'unknown'
+ ) {
$this->mTitle = $titleTo;
$this->mTable = $table;
$this->mTitle = $titleTo;
$this->mTable = $table;
+ $this->causeAction = $causeAction;
+ $this->causeAgent = $causeAgent;
}
public function doUpdate() {
}
public function doUpdate() {
- $job = HTMLCacheUpdateJob::newForBacklinks( $this->mTitle, $this->mTable );
+ $job = HTMLCacheUpdateJob::newForBacklinks(
+ $this->mTitle,
+ $this->mTable,
+ [ 'causeAction' => $this->getCauseAction(), 'causeAgent' => $this->getCauseAgent() ]
+ );
JobQueueGroup::singleton()->lazyPush( $job );
}
JobQueueGroup::singleton()->lazyPush( $job );
}