latitude-dev / latitude

Developer-first embedded analytics

Home Page:https://latitude.so

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cache expiration time

csansoon opened this issue · comments

Feature Description

Adding a config option for cache TTL.

Goal of Feature

Having a more advanced control over the cache behaviour. Lots of use cases could benefit for an automatic invalidation of the cache after some time, instead of it being persistent forever until someone manually sends a force request.

Current Solution / Workarounds

Currently the only way to invalidate a cache is by sending a request with the Force flag. This must be an intended request.