kolbyjack / MMM-Wallpaper

MagicMirror module to display wallpapers from various online sources
https://magicmirror.builders/
MIT License
99 stars 31 forks source link

Cache Flickr image size data, reduce bandwidth use #100

Closed crazyscot closed 5 months ago

crazyscot commented 5 months ago

Observing that image sizes rarely (if ever) change, we can reduce our load on the API by cacheing the result of the getSizes call.

We further reduce the API/bandwidth usage by introducing a config flickrResultsPerPage, default to 500 (the API limit).