Module: check_mk
Branch: master
Commit: 42963b3b460d6a9572fe31dbb6b2aadc0c43b7bb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=42963b3b460d6a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Oct 11 03:55:27 2013 +0200
Enable Caching for Sidebar search
---
web/htdocs/sidebar.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 31d5bdd..e8eece5 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -668,7 +668,7 @@ def search_livestatus(ty, q):
filt.append('Or: %d\n' % (len(filt)))
column = ty == 'service' and 'description' or 'name'
- lq = "GET %ss\nColumns: %s\n%sLimit: %d\n" % \
+ lq = "GET %ss\nCache: reload\nColumns: %s\n%sLimit: %d\n" % \
(ty, column, ''.join(filt), limit)
html.live.set_prepend_site(True)
data = html.live.query(lq)