Closed lvps closed 4 years ago
Similar to #28, cache log.txt for at least a few seconds since it's downloaded every time and used by most commands.
log.txt
https://github.com/WEEE-Open/weeelab-telegram-bot/blob/09f4f9e3ea4218edf1d3dcd4420cc0ec1354d7a0/weeelab_bot.py#L162-L165
Don't cache it for too long since who's /inlab depends on how fresh the file is.
Done recently
Similar to #28, cache
log.txt
for at least a few seconds since it's downloaded every time and used by most commands.https://github.com/WEEE-Open/weeelab-telegram-bot/blob/09f4f9e3ea4218edf1d3dcd4420cc0ec1354d7a0/weeelab_bot.py#L162-L165
Don't cache it for too long since who's /inlab depends on how fresh the file is.