aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2020-01-26 17:12:09 -0800
committerDavid Reyna <David.Reyna@windriver.com>2020-01-26 17:12:09 -0800
commit07cfde3b3686b56d967098e50c579ad4173fd70c (patch)
tree744c25aa2fc9f2ea496586d35de010b426dde99d
parent6ff000a1f67d22a68a7d3662636334c72f3fe81f (diff)
downloadsrtool-07cfde3b3686b56d967098e50c579ad4173fd70c.tar.gz
srtool-07cfde3b3686b56d967098e50c579ad4173fd70c.tar.bz2
srtool-07cfde3b3686b56d967098e50c579ad4173fd70c.zip
srtool: disable table display caching
Normally the Table display feature caches served pages for faster refresh. However, in the SRTool the data is very volaile so this often shows stale information. For now, disable the caching. Signed-off-by: David Reyna <David.Reyna@windriver.com>
-rw-r--r--lib/srtgui/widgets.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/srtgui/widgets.py b/lib/srtgui/widgets.py
index 751f7f14..5f5c54b1 100644
--- a/lib/srtgui/widgets.py
+++ b/lib/srtgui/widgets.py
@@ -327,7 +327,8 @@ class ToasterTable(TemplateView):
cache_name = re.sub(r'["\']', "-", cache_name)
cache_name = re.sub(r'[^A-Za-z0-9-]', "", cache_name)
- if nocache:
+ # Forcibly disable caching for all pages, since SRTool data is too dynamic
+ if True or nocache:
cache.delete(cache_name)
data = cache.get(cache_name)