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);
    }