Active
Project:
Group
Version:
8.x-1.x-dev
Component:
Group (group)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2020 at 16:03 UTC
Updated:
1 Dec 2020 at 16:24 UTC
Jump to comment: Most recent
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
Comment #2
carolpettirossi commentedComment #3
carolpettirossi commentedComment #4
carolpettirossi commented