dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
45267f9
)
Merge "Remove redundant onTransactionIdle() call from WikiPage::doPurge"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Tue, 19 Jul 2016 21:10:05 +0000
(21:10 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Tue, 19 Jul 2016 21:10:05 +0000
(21:10 +0000)
includes/page/WikiPage.php
patch
|
blob
|
history
diff --git
a/includes/page/WikiPage.php
b/includes/page/WikiPage.php
index
b64604e
..
dbc27a9
100644
(file)
--- a/
includes/page/WikiPage.php
+++ b/
includes/page/WikiPage.php
@@
-1103,15
+1103,10
@@
class WikiPage implements Page, IDBAccessObject {
return false;
}
- $title = $this->mTitle;
- wfGetDB( DB_MASTER )->onTransactionIdle( function() use ( $title ) {
- // Invalidate the cache in auto-commit mode
- $title->invalidateCache();
- } );
-
+ $this->mTitle->invalidateCache();
// Send purge after above page_touched update was committed
DeferredUpdates::addUpdate(
- new CdnCacheUpdate( $title->getCdnUrls() ),
+ new CdnCacheUpdate( $t
his->mT
itle->getCdnUrls() ),
DeferredUpdates::PRESEND
);