guynir42 / guynir42/AstroRetriever

check modified date of config file when caching

Open
#33 0 comments 0 reactions 1 assignee Claimed by @guynir42 View on GitHub
bug low priority
Dominant language
Python
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Right now we don't re-load a config file if it is cached.
This is a bug because the file could change while the code is running and the cache will not be cleared.
We should also keep track of the last modified date and only if it is before the cached date use the file.

ref: https://stackoverflow.com/questions/375154/how-do-i-get-the-time-a-file-was-last-modified-in-python

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.