sofascore / purgatory-bundle

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

Support for optional url parameters #36

Open zlatkoverk opened 2 years ago

zlatkoverk commented 2 years ago

If route supports optional url parameters, then purgatory should generate first and second url without any query parameters.

E.g. single route handles /post/{id}/comments and /post/{id}/comments/user/{userId} @PurgeOn(Post::class, parameters={"id":"id", "userId":"user.id"})

Current behaviour is that the first route is generated with a query parameter userId which is not needed