Add a moka cache to cache events to stop constantly polling the filesystem.
Then, you should be able to invalidate using a similar button to the reload_partials button.
The tricky part will be getting this to cooperate with the liquid compiler - easy for just the templates, difficult for the partials. It might just be that there isn't a way to get the partials working.
This should ideally use the state - moka caches are cheap to clone iirc.
Add a
moka
cache to cache events to stop constantly polling the filesystem. Then, you should be able to invalidate using a similar button to thereload_partials
button.The tricky part will be getting this to cooperate with the
liquid
compiler - easy for just the templates, difficult for the partials. It might just be that there isn't a way to get the partials working.This should ideally use the state -
moka
caches are cheap to clone iirc.