mitydigital / statamic-scheduled-cache-invalidator

MIT License
2 stars 3 forks source link

Allow save method to be defined #5

Closed ryanmitchell closed 6 months ago

ryanmitchell commented 6 months ago

We have a use case where we'd like to use the console task part of the add on, but we want to allow natural invalidation to happen through the normal save method.

This PR adds a config to allow normal saving.

Theres probably an argument that you could just save() all the time and then you wouldnt need to hook into invalidation as it would happen anyway.

Anyway, happy to answer any queries or "why the heck do you need this" type questions.