CacheFlushPageResolver

readonly class \TYPO3\CMS\Core\Cache\Flush\CacheFlushPageResolver

Looks up the pages whose caches are affected by a changed record.

Table of Contents

Methods

__construct()  : mixed
getAffectedPageIds()  : array<int, int>
For "pages", the page itself, its siblings and its parent page are affected, for other tables the page the record is located on.
getPageIdOfRecord()  : int
The page the record is located on, for "pages" the default language page itself.
getPageTsConfigPageId()  : int|null
The page whose Page TSconfig applies to the record: a page itself, the page a record is located on (0 on root level), for a workspace version the page of its live record. Null if the record does not exist.
isWorkspaceVersion()  : bool
A record changed in a workspace leaves the live record untouched.

Methods

getAffectedPageIds()

For "pages", the page itself, its siblings and its parent page are affected, for other tables the page the record is located on.

public getAffectedPageIds(string $table, int $pageId, array $pageTsConfig) : array<int, int>

"TCEMAIN.clearCache_pageSiblings = 0" limits the siblings to the translations of the page, "TCEMAIN.clearCache_pageSiblingChildren" adds the subpages of the siblings, "TCEMAIN.clearCache_pageGrandParent" the next page upwards.

Parameters

$table : string
$pageId : int
$pageTsConfig : array

Page TSconfig "TCEMAIN."

Return values

array<int, int>

getPageIdOfRecord()

The page the record is located on, for "pages" the default language page itself.

public getPageIdOfRecord(string $table, int $uid) : int

Parameters

$table : string
$uid : int

Return values

int

getPageTsConfigPageId()

The page whose Page TSconfig applies to the record: a page itself, the page a record is located on (0 on root level), for a workspace version the page of its live record. Null if the record does not exist.

public getPageTsConfigPageId(string $table, int $uid) : int|null

Parameters

$table : string
$uid : int

Return values

int|null

isWorkspaceVersion()

A record changed in a workspace leaves the live record untouched.

public isWorkspaceVersion(string $table, int $uid) : bool

Parameters

$table : string
$uid : int

Return values

bool
On this page