Module: check_mk
Branch: master
Commit: 9db384d40f4d42190df1da9909923cd2697fe001
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9db384d40f4d42…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 2 11:49:17 2014 +0200
Save transids only for one day
This avoid long page loading times when too many trans ids
are being created
---
web/htdocs/htmllib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 45df4af..2cac2e1 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -974,7 +974,7 @@ class html:
now = time.time()
for valid_id in valid_ids:
timestamp, rand = valid_id.split("/")
- if now - int(timestamp) < 604800: # 7 * 24 hours
+ if now - int(timestamp) < 86400: # one day
cleared_ids.append(valid_id)
self.save_transids(cleared_ids + self.new_transids, unlock = True)