For some complex cache invalidation cases, where PurgeOn attribute is not enough, custom listeners are required to implement that logic.
Better approach would be:
EntityChangeListener injects tagged services
current implementation would be default
whenever custom logic is needed, new service should only implement some interface and purgatory would automatically call it. no need for extra listeners
For some complex cache invalidation cases, where PurgeOn attribute is not enough, custom listeners are required to implement that logic. Better approach would be: