BurntNail / vent

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

Cache Events #179

Closed BurntNail closed 12 months ago

BurntNail commented 1 year ago

Add a moka cache to cache events to stop constantly polling the DB. Then, you should be able to selectively invalidate when events get updated. Lots of event updater functions already call a function on the state, just add something to take in an event_id.

This should ideally use the state - moka caches are cheap to clone iirc.