This is overkill and can cause excess lock contention
on larger files. Purges are typically used to fix
thumbnails or CDN, not metadata. Scripts can always
be run to fix any real breakage.
Bug: T132921
Change-Id: Ieecf1c015735b7219ca51c87951b59c453cf588f
* @ingroup Media
*/
class WikiFilePage extends WikiPage {
- /**
- * @var File
- */
+ /** @var File */
protected $mFile = false;
+ /** @var LocalRepo */
protected $mRepo = null;
+ /** @var bool */
protected $mFileLoaded = false;
+ /** @var array */
protected $mDupes = null;
public function __construct( $title ) {
if ( $this->mFile->exists() ) {
wfDebug( 'ImagePage::doPurge purging ' . $this->mFile->getName() . "\n" );
DeferredUpdates::addUpdate( new HTMLCacheUpdate( $this->mTitle, 'imagelinks' ) );
- $this->mFile->upgradeRow();
$this->mFile->purgeCache( [ 'forThumbRefresh' => true ] );
} else {
wfDebug( 'ImagePage::doPurge no image for '