}
/**
- * Refresh metadata in memcached, but don't touch thumbnails or squid
+ * Refresh metadata in memcached, but don't touch thumbnails or CDN
*/
function purgeMetadataCache() {
$this->invalidateCache();
}
/**
- * Delete all previously generated thumbnails, refresh metadata in memcached and purge the squid.
+ * Delete all previously generated thumbnails, refresh metadata in memcached and purge the CDN.
*
* @param array $options An array potentially with the key forThumbRefresh.
*
// Delete thumbnails
$this->purgeThumbnails( $options );
- // Purge squid cache for this file
+ // Purge CDN cache for this file
DeferredUpdates::addUpdate(
new CdnCacheUpdate( array( $this->getUrl() ) ),
DeferredUpdates::PRESEND
$dir = array_shift( $files );
$this->purgeThumbList( $dir, $files );
- // Purge the squid
+ // Purge the CDN
$urls = array();
foreach ( $files as $file ) {
$urls[] = $this->getArchiveThumbUrl( $archiveName, $file );
public function purgeThumbnails( $options = array() ) {
// Delete thumbnails
$files = $this->getThumbnails();
- // Always purge all files from squid regardless of handler filters
+ // Always purge all files from CDN regardless of handler filters
$urls = array();
foreach ( $files as $file ) {
$urls[] = $this->getThumbUrl( $file );
$dir = array_shift( $files );
$this->purgeThumbList( $dir, $files );
- // Purge the squid
+ // Purge the CDN
DeferredUpdates::addUpdate( new CdnCacheUpdate( $urls ), DeferredUpdates::PRESEND );
}
if ( $newPageContent ) {
# New file page; create the description page.
# There's already a log entry, so don't make a second RC entry
- # Squid and file cache for the description page are purged by doEditContent.
+ # CDN and file cache for the description page are purged by doEditContent.
$status = $wikiPage->doEditContent(
$newPageContent,
$comment,
if ( $reupload ) {
# Delete old thumbnails
$that->purgeThumbnails();
- # Remove the old file from the squid cache
+ # Remove the old file from the CDN cache
DeferredUpdates::addUpdate(
new CdnCacheUpdate( array( $that->getUrl() ) ),
DeferredUpdates::PRESEND
}
);
- // Purge the squid
+ // Purge the CDN
$purgeUrls = array();
foreach ( $archiveNames as $archiveName ) {
$purgeUrls[] = $this->getArchiveUrl( $archiveName );