BurntNail / vent

Website for managing House Events
https://blog.maguire.tech/posts/projects/vent/
MIT License
4 stars 1 forks source link

Cache templates #180

Closed BurntNail closed 5 days ago

BurntNail commented 10 months ago

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.

BurntNail commented 5 days ago

done :)