zer0tonin / Mikochi

A minimalist file-manager with streaming capabilities
MIT License
173 stars 6 forks source link

Smarter cache refresh #3

Open zer0tonin opened 5 months ago

zer0tonin commented 5 months ago

Right now, whenever a Create/Remove/Rename event happens, we simply invalidate the whole cache and re-create it. This could be improved by changing the cache to match the effects of the event.

Code in question: https://github.com/zer0tonin/Mikochi/blob/main/backend/browser/cache.go#L75