Days ago I proposed an issue: If there is no cache-tags defined, flag_entity_view return an error. Maybe it's related.
I have a custom block that implement 2 different flags for a node and another block showing who has flagged that node.
When debugging the cacheability I noticed that there is no getCacheTags or any cache tag that reference the entity flagged and the flag itself. Some tag like: flag:my_flag:node:my_bundle:968. Something that with the addCacheableDependency, from the renderer service, the caches can be invalidated when the user flag a node.
Maybe am I wrong with the approach or this kind of cache tags are needed?
Comments
Comment #2
ivnish8 years without any activity. I think we can close it as outdated. Please reopen if needed.