public static function addCacheTagsByAddressRecords(array $addressRecords)
    {
        $prefix = 'tt_address_';
        $cacheTags = [];
        foreach ($addressRecords as $addressRecord) {
            if (!$addressRecord instanceof Address) {
                continue;
            }
            // cache tag for each addressRecord record
            $cacheTags[] = $prefix . $addressRecord->getUid();

            if ($addressRecord->_getProperty('_localizedUid') != $addressRecord->getUid()) {
                $cacheTags[] = $prefix . $addressRecord->_getProperty('_localizedUid');
            }
        }

        $GLOBALS['TSFE']->addCacheTags($cacheTags);
    }
public static function addCacheTagsByAddressRecords(array $addressRecords)
    {
        $prefix = 'tt_address_';
        $cacheTags = [];
        foreach ($addressRecords as $addressRecord) {
            if (!$addressRecord instanceof Address) {
                continue;
            }
            // cache tag for each addressRecord record
            $cacheTags[] = $prefix . $addressRecord->getUid();

            if ($addressRecord->_getProperty('_localizedUid') != $addressRecord->getUid()) {
                $cacheTags[] = $prefix . $addressRecord->_getProperty('_localizedUid');
            }
        }

        $GLOBALS['TSFE']->addCacheTags($cacheTags);
    }
public static function addCacheTagsByAddressRecords ( array $ addressRecords ) { $ prefix = 'tt_address_' ; $ cacheTags = [ ] ; foreach ( $ addressRecords as $ addressRecord ) { if ( ! $ addressRecord instanceof Address ) { continue ; } // cache tag for each addressRecord record $ cacheTags [ ] = $ prefix . $ addressRecord -> getUid ( ) ; if ( $ addressRecord -> _getProperty ( '_localizedUid' ) != $ addressRecord -> getUid ( ) ) { $ cacheTags [ ] = $ prefix . $ addressRecord -> _getProperty ( '_localizedUid' ) ; } } $ GLOBALS [ 'TSFE' ] -> addCacheTags ( $ cacheTags ) ; }
Adds cache tags to page cache by tt_address-records.

TYPO3 has a built-in mechanism which flushes the page cache
when editing a record. This is done by a tag that looks
like [table]_[record:uid]

@param array $addressRecords array with address records
Adds cache tags to page cache by tt_address - records .