londonhackspace / acnode-cl

ACnode using a Connected Launchpad
14 stars 8 forks source link

Better cache verification, perhaps using RTC+TTL #48

Closed jasiek closed 5 years ago

jasiek commented 8 years ago

Validity of cards in the cache is meant to be verified on startup (currently disabled). This takes ~3 sec per card, and at a few hundred cards introduces a long delay before making the tool operational. Instead of doing this, do the following:

zymurgic commented 5 years ago

cache verification is now done against all cards in the cache on a regular basis. At the moment, it's all cards, every 30 minutes or so. This is not currently a problem with load on the acserver. Looking at cache sizes, it won't be for a very long time. If it does get to be a problem, we can look at only reverifying those that are due to expire in the next hour or so. Closing for now, since the problem is solved.