The patch from this issue https://www.drupal.org/project/group/issues/3110773 changed getCacheTagsToInvalidate to getListCacheTagsToInvalidate.

I can see that cache tags below are being bubbled in hook_entity_access and EntityQueryAlter::doAlter():
$plugin_cache_tags[] = "group_content_list:plugin:$plugin_id";

However, I'm wondering in which pages the cache tags below are being bubbled and hence it needs to be cleared:

// A specific group gets any content, regardless of plugin used.
    // E.g.: A group's list of entities can be flushed with this.
    $tags[] = "group_content_list:group:$group_id";

    // A specific entity gets added to any group, regardless of plugin used.
    // E.g.: An entity's list of groups can be flushed with this.
    $tags[] = "group_content_list:entity:$entity_id";

    // A specific group gets any content using a specific plugin.
    // E.g.: A group's list of members can be flushed with this.
    $tags[] = "group_content_list:plugin:$plugin_id:group:$group_id";

    // A specific entity gets added to any group using a specific plugin.
    // E.g.: A user's list of memberships can be flushed with this.
    $tags[] = "group_content_list:plugin:$plugin_id:entity:$entity_id";

Thanks in advance

Comments

carolpettirossi created an issue. See original summary.

carolpettirossi’s picture

Issue summary: View changes
carolpettirossi’s picture