eZPublishCommunityProject  2012.12
eZ\Publish\Core\MVC\Symfony\Cache\Http\PurgeClient Class Reference
+ Inheritance diagram for eZ\Publish\Core\MVC\Symfony\Cache\Http\PurgeClient:
+ Collaboration diagram for eZ\Publish\Core\MVC\Symfony\Cache\Http\PurgeClient:

Public Member Functions

 __construct (ConfigResolverInterface $configResolver, Browser $httpBrowser)
 
 purge ($locationIds)
 Triggers the cache purge $cacheElements. More...
 
 purgeAll ()
 Purges all content elements currently in cache. More...
 

Protected Member Functions

 doPurge ($server, array $locationIds)
 Effectively triggers the purge. More...
 

Protected Attributes

 $httpBrowser
 
 $locationIds
 
 $purgeServers
 

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Symfony\Cache\Http\PurgeClient::__construct ( ConfigResolverInterface  $configResolver,
Browser  $httpBrowser 
)

Member Function Documentation

eZ\Publish\Core\MVC\Symfony\Cache\Http\PurgeClient::doPurge (   $server,
array  $locationIds 
)
protected

Effectively triggers the purge.

Sends one HTTP PURGE request per location Id. Used request header is X-Location-Id.

Parameters
string$serverCurrent purge server (e.g. http://localhost/foo/bar)
array$locationIdsLocation Ids to purge
Returns
void

Referenced by eZ\Publish\Core\MVC\Symfony\Cache\Http\PurgeClient\purge().

eZ\Publish\Core\MVC\Symfony\Cache\Http\PurgeClient::purge (   $locationIds)

Triggers the cache purge $cacheElements.

Parameters
mixed$locationIdsCache resource(s) to purge (array of locationId to purge in the reverse proxy)
Returns
void

Implements eZ\Publish\Core\MVC\Symfony\Cache\PurgeClientInterface.

eZ\Publish\Core\MVC\Symfony\Cache\Http\PurgeClient::purgeAll ( )

Purges all content elements currently in cache.

Returns
void

Implements eZ\Publish\Core\MVC\Symfony\Cache\PurgeClientInterface.

Member Data Documentation

eZ\Publish\Core\MVC\Symfony\Cache\Http\PurgeClient::$httpBrowser
protected
eZ\Publish\Core\MVC\Symfony\Cache\Http\PurgeClient::$locationIds
protected
eZ\Publish\Core\MVC\Symfony\Cache\Http\PurgeClient::$purgeServers
protected

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