diff --git a/Client/index.html b/Client/index.html index 8239394..42acb1f 100644 --- a/Client/index.html +++ b/Client/index.html @@ -258,6 +258,11 @@ Alpine.store('data',data['main']) if (data['name']){ Alpine.store('data',data); } + for(c in data['connections']){ + fetchback(data['connections'][c]['location']+'/.well-known/interverse',function(data){ + Alpine.store[data['location'],data] + }); + } }); interverse_data(url.replace("https://",'').replace('http://','').replace('/',''), function (data) { console.log("Initializing interverse...") diff --git a/server/simple_cache.py b/server/simple_cache.py index 9abb7ff..0049517 100644 --- a/server/simple_cache.py +++ b/server/simple_cache.py @@ -1,5 +1,5 @@ import requests -import time,json,os +import time,json,os,random from joblib import Parallel, delayed ideal_delta = 60 * 15 # 15 minutes @@ -73,7 +73,7 @@ class Cache: # If no data is returned, wait longer before attempting again self.links[url] = { 'data': None, - 'time': t+60*60 #1 hour + 'time': t + (60*60) * random.randint(8,16) } return data