prefixedDbKeys = $prefixedDbKeys; } /** * Create an update object from an array of Title objects, or a TitleArray object * * @param Traversable|Title[] $titles * @return HtmlFileCacheUpdate */ public static function newFromTitles( $titles ) { $prefixedDbKeys = []; foreach ( $titles as $title ) { $prefixedDbKeys[] = $title->getPrefixedDBkey(); } return new self( $prefixedDbKeys ); } public function doUpdate() { $config = MediaWikiServices::getInstance()->getMainConfig(); if ( $config->get( 'UseFileCache' ) ) { HTMLFileCache::purge( $this->prefixedDbKeys ); } } }