PHP Класс eZ\Publish\Core\MVC\Symfony\Cache\Http\LocationAwareStore

Наследование: extends Symfony\Component\HttpKernel\HttpCache\Store, implements eZ\Publish\Core\MVC\Symfony\Cache\Http\ContentPurger
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
getFilesystem ( ) : Symfony\Component\Filesystem\Filesystem
getLocationCacheDir ( integer $locationId = null ) : string Returns cache dir for $locationId.
getLocationCacheLockName ( $locationId = null ) : string Returns cache lock name for $locationId.
getPath ( string $key ) : string Returns the right path where cache is being stored.
purgeAllContent ( ) : boolean Purges all cached content.
purgeByRequest ( Request $request ) : boolean Purges data from $request.
setFilesystem ( Symfony\Component\Filesystem\Filesystem $fs ) Injects a Filesystem instance For unit tests only.

Защищенные методы

Метод Описание
generateContentDigest ( Response $response ) : string Injects eZ Publish specific information in the content digest if needed.

Приватные методы

Метод Описание
purgeLocation ( $locationId ) : boolean Purges cache for $locationId.

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

generateContentDigest() защищенный Метод

X-Location-Id response header is set in the ViewController.
См. также: eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController::viewLocation()
protected generateContentDigest ( Response $response ) : string
$response Symfony\Component\HttpFoundation\Response
Результат string

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

public getFilesystem ( ) : Symfony\Component\Filesystem\Filesystem
Результат Symfony\Component\Filesystem\Filesystem

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

This method is public only for unit tests. Use it only if you know what you are doing.
public getLocationCacheDir ( integer $locationId = null ) : string
$locationId integer
Результат string

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

This method is public only for unit tests. Use it only if you know what you are doing.
public getLocationCacheLockName ( $locationId = null ) : string
Результат string

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

Will detect if $key is eZ Publish specific.
public getPath ( string $key ) : string
$key string
Результат string

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

Purges all cached content.
public purgeAllContent ( ) : boolean
Результат boolean

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

If X-Location-Id or X-Group-Location-Id header is present, the store will purge cache for given locationId or group of locationIds. If not, regular purge by URI will occur.
public purgeByRequest ( Request $request ) : boolean
$request Symfony\Component\HttpFoundation\Request
Результат boolean True if purge was successful. False otherwise

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

Injects a Filesystem instance For unit tests only.
public setFilesystem ( Symfony\Component\Filesystem\Filesystem $fs )
$fs Symfony\Component\Filesystem\Filesystem