feat: ensure periodic data updates for app stability
Added instructions to README for regularly triggering `/cron/` to keep the app's cached data updated. Modified `main.py` to initialize `global_ibles` even when using a WSGI server, ensuring data consistency. This change improves the reliability and performance of the app by maintaining up-to-date data. Relates to #9
This commit is contained in:
parent
8356f71fc1
commit
ef0c0a5e89
2 changed files with 5 additions and 0 deletions
|
@ -40,3 +40,6 @@ def main():
|
|||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
else:
|
||||
# Even if we're using a wsgi server, we still have to initialize global_ibles
|
||||
update_data(app)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue