eZPublishCommunityProject  2012.12
eZ\Bundle\EzPublishCoreBundle\HttpCache Class Reference
+ Inheritance diagram for eZ\Bundle\EzPublishCoreBundle\HttpCache:
+ Collaboration diagram for eZ\Bundle\EzPublishCoreBundle\HttpCache:

Protected Member Functions

 createStore ()
 
 getPurgeAllowedIPs ()
 Returns an array of allowed IPs for Http PURGE requests. More...
 
 invalidate (Request $request, $catch=false)
 Handle invalidation, including Http PURGE requests. More...
 
 isPurgeIPAllowed ($ip)
 Checks if $ip is allowed for Http PURGE requests. More...
 
 isPurgeRequestAllowed (Request $request)
 Checks if current purge request is allowed. More...
 

Member Function Documentation

eZ\Bundle\EzPublishCoreBundle\HttpCache::createStore ( )
protected
eZ\Bundle\EzPublishCoreBundle\HttpCache::getPurgeAllowedIPs ( )
protected

Returns an array of allowed IPs for Http PURGE requests.

Returns
array

Referenced by eZ\Bundle\EzPublishCoreBundle\HttpCache\isPurgeIPAllowed().

eZ\Bundle\EzPublishCoreBundle\HttpCache::invalidate ( Request  $request,
  $catch = false 
)
protected

Handle invalidation, including Http PURGE requests.

All non-allowed PURGE requests will receive an HTTP 405

Parameters
\Symfony\Component\HttpFoundation\Request$request
boolean$catch
Returns
eZ\Bundle\EzPublishCoreBundle\HttpCache::isPurgeIPAllowed (   $ip)
protected

Checks if $ip is allowed for Http PURGE requests.

Todo:
Check subnets
Parameters
string$ip
Returns
boolean

Referenced by eZ\Bundle\EzPublishCoreBundle\HttpCache\isPurgeRequestAllowed().

eZ\Bundle\EzPublishCoreBundle\HttpCache::isPurgeRequestAllowed ( Request  $request)
protected

Checks if current purge request is allowed.

This method can be overridden to extend the allowance test.

Parameters
\Symfony\Component\HttpFoundation\Request$request
Returns
boolean

Referenced by eZ\Bundle\EzPublishCoreBundle\HttpCache\invalidate().


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