Custom entity custom cache tags

by Elaman   Last Updated August 13, 2019 05:07 AM - source

I've created a custom entity and having trouble providing proper caching.

When you create custom entity, by default it has only one cache tag entity_type:id.

Problem is, I need to display same entity to different users (by role) in a different way.

So I think I need cache tags, such as entity_type:id:user_role? How do I go with this?

Tags : 8


Related Questions