‪TYPO3CMS  9.5
TYPO3\CMS\Core\Hooks\SiteDataHandlerCacheHook Class Reference

Public Member Functions

 processDatamap_afterDatabaseOperations (string $status, string $table, $recordId, array $updatedFields, DataHandler $dataHandler)
 
 processCmdmap_postProcess (string $command, string $table, $id, $value, DataHandler $dataHandler, $pasteUpdate, array $pasteDatamap)
 

Protected Member Functions

FrontendInterface getCache ()
 

Detailed Description

When a sys_domain or sys_language record is modified, the Site Handling caches should be flushed. Also, if pages on root level are changed, site handling caches need flush.

This class is a hook implementation and is not part of the TYPO3 Core API.

Definition at line 31 of file SiteDataHandlerCacheHook.php.

Member Function Documentation

◆ getCache()

FrontendInterface TYPO3\CMS\Core\Hooks\SiteDataHandlerCacheHook::getCache ( )
protected

Shorthand method to flush the related caches

Returns
‪FrontendInterface
Exceptions

Definition at line 80 of file SiteDataHandlerCacheHook.php.

Referenced by TYPO3\CMS\Core\Hooks\SiteDataHandlerCacheHook\processCmdmap_postProcess(), and TYPO3\CMS\Core\Hooks\SiteDataHandlerCacheHook\processDatamap_afterDatabaseOperations().

◆ processCmdmap_postProcess()

TYPO3\CMS\Core\Hooks\SiteDataHandlerCacheHook::processCmdmap_postProcess ( string  $command,
string  $table,
  $id,
  $value,
DataHandler  $dataHandler,
  $pasteUpdate,
array  $pasteDatamap 
)

Called after a record was deleted, moved or restored.

Parameters
string$command‪the cmd which was executed
string$table‪The DB table the operation was carried out on
mixed$id‪the ID which was operated on
mixed$value
DataHandler$dataHandler
mixed$pasteUpdate
array$pasteDatamap

Definition at line 67 of file SiteDataHandlerCacheHook.php.

References TYPO3\CMS\Core\Hooks\SiteDataHandlerCacheHook\getCache(), and TYPO3\CMS\Core\Cache\Frontend\FrontendInterface\remove().

◆ processDatamap_afterDatabaseOperations()

TYPO3\CMS\Core\Hooks\SiteDataHandlerCacheHook::processDatamap_afterDatabaseOperations ( string  $status,
string  $table,
  $recordId,
array  $updatedFields,
DataHandler  $dataHandler 
)

Called after a record was edited or added.

Parameters
string$status‪DataHandler operation status, either 'new' or 'update'
string$table‪The DB table the operation was carried out on
mixed$recordId‪The record's uid for update records, a string to look the record's uid up after it has been created
array$updatedFields‪Array of changed fields and their new values
DataHandler$dataHandler‪DataHandler parent object

Definition at line 42 of file SiteDataHandlerCacheHook.php.

References TYPO3\CMS\Core\Hooks\SiteDataHandlerCacheHook\getCache(), and TYPO3\CMS\Core\Cache\Frontend\FrontendInterface\remove().