$update = new HTMLCacheUpdate( $this->mTitle, 'imagelinks' );
$update->doUpdate();
$this->mFile->upgradeRow();
- $this->mFile->purgeCache( array( 'forRefresh' => true ) );
+ $this->mFile->purgeCache( array( 'forThumbRefresh' => true ) );
} else {
wfDebug( 'ImagePage::doPurge no image for ' . $this->mFile->getName() . "; limiting purge to cache only\n" );
// even if the file supposedly doesn't exist, force any cached information
// to be updated (in case the cached information is wrong)
- $this->mFile->purgeCache( array( 'forRefresh' => true ) );
+ $this->mFile->purgeCache( array( 'forThumbRefresh' => true ) );
}
return parent::doPurge();
}
* STUB
* Overridden by LocalFile
* @param $options Array Options, which include:
- * 'forRefresh' : The purging is only to refresh thumbnails
+ * 'forThumbRefresh' : The purging is only to refresh thumbnails
*/
function purgeCache( $options = array() ) {}
$files = $this->getThumbnails();
// Give media handler a chance to filter the purge list
- if ( !empty( $options['forRefresh'] ) ) {
+ if ( !empty( $options['forThumbRefresh'] ) ) {
$handler = $this->getHandler();
if ( $handler ) {
$handler->filterThumbnailPurgeList( $files, $options );