function purgeDescription() {
$page = Title::makeTitle( NS_IMAGE, $this->name );
$page->invalidateCache();
+ $page->purgeSquid();
}
/**
* @return true on success, false on some kind of failure
*/
function deleteOld( $archiveName, $reason ) {
- $fname = __CLASS__ . '::' . __FUNCTION__;
+ $fname = __METHOD__;
$transaction = new FSTransaction();
$urlArr = array();
if ( $wgUseSquid ) {
$urlArr = array(
wfImageArchiveUrl( $archiveName ),
- $page->getInternalURL()
);
wfPurgeSquidServers( $urlArr );
}