slowing down GUI
Message-ID: <58b5953b.NVSY3saAERmJVZjm%ab(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: d3adfd9a1925da29f4e4d1b0c7554c27f6514e10
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d3adfd9a1925da…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Feb 28 16:15:05 2017 +0100
4451 FIX BI Aggregations: fixed redundant read of cached data, slowing down GUI
Change-Id: I63a17f6446c44f719f29940e013e16ac5fb31c26
---
.werks/4451 | 10 ++++++++++
web/htdocs/bi.py | 4 +++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/4451 b/.werks/4451
new file mode 100644
index 0000000..f9ed9b9
--- /dev/null
+++ b/.werks/4451
@@ -0,0 +1,10 @@
+Title: BI Aggregations: fixed redundant read of cached data, slowing down GUI
+Level: 1
+Component: bi
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1488294834
+Class: fix
+
+
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index f2d247b..6a69ef2 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -492,6 +492,8 @@ class BICacheFile(object):
def __init__(self, **kwargs):
self._filepath = kwargs.get("filepath")
self._cached_data = None
+
+ # Timestamp of the last/read write operation
self._filetime = None
try:
@@ -505,7 +507,7 @@ class BICacheFile(object):
def clear_cache(self):
log("Clearing caches %s" % self._filepath)
self._cached_data = None
- self._filetime = None
+
def get_filepath(self):
return self._filepath