class ClearCacheCommandHandler (View source)

Properties

private EventDispatcher $dispatcher
private Application $application
private DatabaseManager $manager
private Repository $repository
private Filesystem $filesystem
private LoggerInterface $logger
private ObjectCache $caches
private bool $clearGlobalAreas

Methods

__construct(EventDispatcher $dispatcher, DatabaseManager $manager, Repository $repository, Application $application, Filesystem $filesystem, LoggerInterface $logger)

No description

__invoke(ClearCacheCommand $command)

No description

setClearGlobalAreas(bool $clearGlobalAreas)

No description

setCache($handle, $cache)

Set a cache object to be cleared

Generator|FlushableInterface[]
getCaches()

A generator that populates the cache objects from the container

flushCaches()

Flush all the caches

clearCacheDirectory($directory)

Clear out items from the cache directory

filesToClear($directory)

No description

setupFilesystem()

No description

clearDatabaseCache()

No description

clearLocalizationCache()

No description

clearBlockTypeCache()

No description

clearOpcodeCache()

No description

deleteEmptyGlobalAreas()

No description

Details

__construct(EventDispatcher $dispatcher, DatabaseManager $manager, Repository $repository, Application $application, Filesystem $filesystem, LoggerInterface $logger)

No description

Parameters

EventDispatcher $dispatcher
DatabaseManager $manager
Repository $repository
Application $application
Filesystem $filesystem
LoggerInterface $logger

__invoke(ClearCacheCommand $command)

No description

Parameters

ClearCacheCommand $command

setClearGlobalAreas(bool $clearGlobalAreas)

No description

Parameters

bool $clearGlobalAreas

setCache($handle, $cache)

Set a cache object to be cleared

Parameters

$handle
$cache

protected Generator|FlushableInterface[] getCaches()

A generator that populates the cache objects from the container

Return Value

Generator|FlushableInterface[]

protected flushCaches()

Flush all the caches

protected clearCacheDirectory($directory)

Clear out items from the cache directory

Parameters

$directory

protected Generator|SplFileInfo[] filesToClear($directory)

No description

Parameters

$directory

Return Value

Generator|SplFileInfo[]

private setupFilesystem()

No description

private clearDatabaseCache()

No description

protected clearLocalizationCache()

No description

protected clearBlockTypeCache()

No description

protected clearOpcodeCache()

No description

protected deleteEmptyGlobalAreas()

No description