code: static protected function getCacheKeyForOptimizedUiTemplatesBasedOnUserId($group): string {
          if (static::getAuthModule()->getAccessPolicyClassName() === CmfAccessPolicy::class) {
              $userId = 'any';
          } else {
              $user = static::getUser();
              $userId = $user ? $user->getAuthIdentifier() : 'not_authenticated';
          }
          return static::url_prefix() . '_templates_' . static::getShortLocale() . '_' . $group . '_user_' . $userId;
      }
docs: User-id-based cache key
  @param string $group
  @return string