PHP Интерфейс eZ\Publish\Core\MVC\Symfony\Cache\GatewayCachePurger

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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.

Описание методов

purge() публичный Метод

Triggers the cache purge of given $locationIds.
Устаревший: 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
Результат mixed

purgeAll() публичный Метод

Triggers the cache purge for all content in cache.
public purgeAll ( ) : mixed
Результат mixed

purgeForContent() публичный Метод

Purge Content cache using $locationIds and gather additional relevant cache to clear based on $contentId.
Устаревший: 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.