BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
CdnCacheUpdate Class Reference
Inheritance diagram for CdnCacheUpdate:
Collaboration diagram for CdnCacheUpdate:

Public Member Functions

 __construct (array $urlArr)
 
 doUpdate ()
 
- Public Member Functions inherited from MergeableUpdate
 merge (MergeableUpdate $update)
 

Static Public Member Functions

static newSimplePurge (Title $title)
 
static purge (array $urlArr)
 
static expand ($url)
 

Protected Attributes

 $urls = []
 

Detailed Description

Handles purging appropriate CDN URLs given a title (or titles)

Constructor & Destructor Documentation

CdnCacheUpdate::__construct ( array  $urlArr)
Parameters
string[]$urlArr Collection of URLs to purge

Member Function Documentation

CdnCacheUpdate::doUpdate ( )

Purges the list of URLs passed to the constructor.

Implements DeferrableUpdate.

static CdnCacheUpdate::expand (   $url)
static

Expand local URLs to fully-qualified URLs using the internal protocol and host defined in $wgInternalServer. Input that's already fully- qualified will be passed through unchanged.

This is used to generate purge URLs that may be either local to the main wiki or include a non-native host, such as images hosted on a second internal server.

Client functions should not need to call this.

Parameters
string$url
Returns
string
static CdnCacheUpdate::newSimplePurge ( Title  $title)
static
Parameters
Title$title
Returns
CdnCacheUpdate
Deprecated:
1.27
static CdnCacheUpdate::purge ( array  $urlArr)
static

Purges a list of CDN nodes defined in $wgSquidServers. $urlArr should contain the full URLs to purge as values (example: $urlArr[] = 'http://my.host/something')

Parameters
string[]$urlArr List of full URLs to purge

The documentation for this class was generated from the following file: