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
Prevent write operations to database replicas.
[lhc/web/wiklou.git]
/
includes
/
deferred
/
CdnCacheUpdate.php
diff --git
a/includes/deferred/CdnCacheUpdate.php
b/includes/deferred/CdnCacheUpdate.php
index
470086a
..
301c4f3
100644
(file)
--- a/
includes/deferred/CdnCacheUpdate.php
+++ b/
includes/deferred/CdnCacheUpdate.php
@@
-18,7
+18,6
@@
* http://www.gnu.org/copyleft/gpl.html
*
* @file
* http://www.gnu.org/copyleft/gpl.html
*
* @file
- * @ingroup Cache
*/
use Wikimedia\Assert\Assert;
*/
use Wikimedia\Assert\Assert;
@@
-49,11
+48,12
@@
class CdnCacheUpdate implements DeferrableUpdate, MergeableUpdate {
/**
* Create an update object from an array of Title objects, or a TitleArray object
*
/**
* Create an update object from an array of Title objects, or a TitleArray object
*
- * @param Traversable|
array
$titles
+ * @param Traversable|
Title[]
$titles
* @param string[] $urlArr
* @return CdnCacheUpdate
*/
public static function newFromTitles( $titles, $urlArr = [] ) {
* @param string[] $urlArr
* @return CdnCacheUpdate
*/
public static function newFromTitles( $titles, $urlArr = [] ) {
+ ( new LinkBatch( $titles ) )->execute();
/** @var Title $title */
foreach ( $titles as $title ) {
$urlArr = array_merge( $urlArr, $title->getCdnUrls() );
/** @var Title $title */
foreach ( $titles as $title ) {
$urlArr = array_merge( $urlArr, $title->getCdnUrls() );