Class

eZ\Publish\Core\MVC\Symfony\Cache\Http\InstantCachePurger

class InstantCachePurger implements GatewayCachePurger

Class InstantCachePurger.

Methods

__construct(PurgeClientInterface $purgeClient, ContentService $contentService, EventDispatcherInterface $eventDispatcher, Repository $repository)

mixed purge(array $locationIds)

Triggers the cache purge of given $locationIds.

mixed purgeAll()

Triggers the cache purge for all content in cache.

purgeForContent(mixed $contentId, array $locationIds = array())

Purge Content cache using $locationIds and gather additional relevant cache to clear based on $contentId.

Details

at line 46
public __construct(PurgeClientInterface $purgeClient, ContentService $contentService, EventDispatcherInterface $eventDispatcher, Repository $repository)

Parameters

PurgeClientInterface $purgeClient
ContentService $contentService
EventDispatcherInterface $eventDispatcher
Repository $repository

at line 61
public mixed purge(array $locationIds)

Triggers the cache purge of given $locationIds.

Parameters

array $locationIds

Return Value

mixed

at line 71
public mixed purgeAll()

Triggers the cache purge for all content in cache.

Return Value

mixed

at line 79
public purgeForContent(mixed $contentId, array $locationIds = array())

Purge Content cache using $locationIds and gather additional relevant cache to clear based on $contentId.

Parameters

mixed $contentId Content ID.
array $locationIds Initial location id's from signal to take into account.