PHP Interface eZ\Publish\Core\MVC\Symfony\Cache\GatewayCachePurger

Show file Open project: ezsystems/ezpublish-kernel Interface Usage Examples

Public Methods

Method Description
purge ( array $locationIds ) : mixed Triggers the cache purge of given $locationIds.
purgeAll ( ) : mixed Triggers the cache purge for all content in cache.
purgeForContent ( mixed $contentId, array $locationIds = [] ) Purge Content cache using $locationIds and gather additional relevant cache to clear based on $contentId.

Method Details

purge() public method

Triggers the cache purge of given $locationIds.
Deprecation: as of 6.0, might be removed in a future major version. Use purgeForContent() instead when content exist.
public purge ( array $locationIds ) : mixed
$locationIds array
return mixed

purgeAll() public method

Triggers the cache purge for all content in cache.
public purgeAll ( ) : mixed
return mixed

purgeForContent() public method

Purge Content cache using $locationIds and gather additional relevant cache to clear based on $contentId.
Deprecation: in 6.5, design flaw on deleted/trashed content, use purge() when content does not exist for now. See EZP-25696 for potential future feature to solve this.
public purgeForContent ( mixed $contentId, array $locationIds = [] )
$contentId mixed Content ID.
$locationIds array Initial location id's from signal to take into account.