You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/06 21:06:43 UTC
svn commit: r1864569 - /comdev/reporter.apache.org/trunk/site/getjson.py
Author: humbedooh
Date: Tue Aug 6 21:06:42 2019
New Revision: 1864569
URL: http://svn.apache.org/viewvc?rev=1864569&view=rev
Log:
bump lifetime of cache to 6 hours.
Modified:
comdev/reporter.apache.org/trunk/site/getjson.py
Modified: comdev/reporter.apache.org/trunk/site/getjson.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/getjson.py?rev=1864569&r1=1864568&r2=1864569&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Tue Aug 6 21:06:42 2019
@@ -255,9 +255,9 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
groups = [oproject]
groups.sort() # so tabs appear in order
- # Try cache first?
+ # Try cache first? (max 6 hours old)
wanted_file = "/tmp/%s.json" % "-".join(groups)
- if (os.path.exists(wanted_file) and os.path.getmtime(wanted_file) > (time.time() - 7200)):
+ if (os.path.exists(wanted_file) and os.path.getmtime(wanted_file) > (time.time() - 21600)):
dump = json.load(open(wanted_file, "r"))
dump['you'] = committers[user]
if anon: