Class

eZ\Bundle\EzPublishCoreBundle\Cache\Http\InstantCachePurger

class InstantCachePurger extends InstantCachePurger implements CacheClearerInterface

Methods

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

from InstantCachePurger
mixed purge(array $locationIds)

Triggers the cache purge of given $locationIds.

from InstantCachePurger
mixed purgeAll()

Triggers the cache purge for all content in cache.

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

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

from InstantCachePurger
clear(string $cacheDir)

Clears any caches necessary.

Details

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

Parameters

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

in InstantCachePurger at line 61
public mixed purge(array $locationIds)

Triggers the cache purge of given $locationIds.

Parameters

array $locationIds

Return Value

mixed

in InstantCachePurger at line 71
public mixed purgeAll()

Triggers the cache purge for all content in cache.

Return Value

mixed

in InstantCachePurger 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.

at line 25
public clear(string $cacheDir)

Clears any caches necessary.

Parameters

string $cacheDir The cache directory.