I have a custom entity that I’ve added some computed fields to, so the classes involved are:
class MyEntity extends ContentEntityBase
class ComputedFieldA extends FieldItemList
class ComputedFieldB extends FieldItemList
My issue is that I want the computed fields to either not be cached at all, or to be cached but with a different invalidation strategy.
Is what I want possible? Or do I just need to invalidate cache for the whole entity?