Ipstenu / varnish-http-purge

Proxy Cache Purge
Apache License 2.0
46 stars 47 forks source link

:recycle: refactor: purge strategy class #98

Open lukasbesch opened 2 years ago

lukasbesch commented 2 years ago

I refactored the invalidation strategy (so the URLs to be purged) into its own class. The class is loaded and configurable (using a constant or a filter), so that one can create a custom class (extending the default class) for a finer control of what and how things should be invalidated. For smaller changes, filters can be used.

This is a draft PR, so it's not ready to merge yet – but any thoughts on this are welcome!