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!
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!