26use Wikimedia\Assert\Assert;
41 private function __construct( array $pages ) {
42 $this->pages = $pages;
47 Assert::parameterType( __CLASS__, $update,
'$update' );
48 '@phan-var self $update';
50 $this->pages = array_merge( $this->pages, $update->pages );
61 foreach ( $pages as $pg ) {
62 $key = CacheKeyHelper::getKeyForPage( $pg );
63 $pagesByKey[$key] = $pg;
66 return new self( $pagesByKey );
70 foreach ( $this->pages as $pg ) {
71 HTMLFileCache::clearFileCache( $pg );
77class_alias( HtmlFileCacheUpdate::class,
'HtmlFileCacheUpdate' );
Page view caching in the file system.
Interface for objects (potentially) representing an editable wiki page.