Skip to content

Improve caching of data from API

Sandro Lutz requested to merge advanced-cache into master

The caching is changed in the following way.

  • Cached values will still expire after some time (but they are not deleted!)
  • When a value is not cached, try to get valid data from the API.
  • If getting the data from the API does not work, return the expired cached value or the default value if there is nothing cached.

Merge request reports