Improve caching system
This commit is contained in:
parent
9c61cc6234
commit
3b653f7bdc
1 changed files with 5 additions and 2 deletions
|
@ -76,7 +76,10 @@ def background_cache() -> None:
|
|||
|
||||
for entry in config:
|
||||
if 'cache' in entry and entry['cache']:
|
||||
try:
|
||||
cache(entry)
|
||||
except:
|
||||
print("Could not cache", entry)
|
||||
print('Cache renewed', arrow.now().format("YYYY-MM-DD HH:mm:ss"))
|
||||
|
||||
|
||||
|
@ -88,4 +91,4 @@ class CacheThread(threading.Thread):
|
|||
print("Starting cache process")
|
||||
while True:
|
||||
background_cache()
|
||||
time.sleep(10*60)
|
||||
time.sleep(10 * 60)
|
||||
|
|
Loading…
Add table
Reference in a new issue