sofascore / purgatory-bundle

Invalidate caches and achieve high hitrate with readable and maintainable annotations
MIT License
45 stars 0 forks source link

Use serialization groups for triggering purge #40

Open shule727 opened 2 years ago

shule727 commented 2 years ago

It would be useful if serialization groups could be used to purge routes when theirs properties change.

E.g.

@PurgeOn(Post::class, groups={"common"})

Also, it would be useful for Purgatory to be able to automatically use FOSRest and API Platform groups defined in the PHPDoc if not explicitly given as parameter to PurgeOn.