23use Wikimedia\Assert\Assert;
38 private function __construct( array $pages ) {
39 $this->pages = $pages;
44 Assert::parameterType( __CLASS__, $update,
'$update' );
45 '@phan-var self $update';
47 $this->pages = array_merge( $this->pages, $update->pages );
58 foreach ( $pages as $pg ) {
59 $key = CacheKeyHelper::getKeyForPage( $pg );
60 $pagesByKey[$key] = $pg;
63 return new self( $pagesByKey );
67 foreach ( $this->pages as $pg ) {
static clearFileCache( $page)
Clear the file caches for a page for all actions.
HTMLFileCache purge update for a set of titles.
merge(MergeableUpdate $update)
Merge this enqueued update with a new MergeableUpdate of the same qualified class name.
doUpdate()
Perform the actual work.
static newFromPages( $pages)
Interface that deferrable updates should implement.
Interface for objects (potentially) representing an editable wiki page.
Interface that deferrable updates can implement to signal that updates can be combined.