[Kimchi-devel] [PATCH] Disable cache for help page

lvroyce at linux.vnet.ibm.com lvroyce at linux.vnet.ibm.com
Mon Jun 16 09:19:56 UTC 2014


From: Royce Lv <lvroyce at linux.vnet.ibm.com>

Help page cache will result backend update not reflected
to ui.
So disable cache for help page so that user can see update
if help information changed.

Signed-off-by: Royce Lv <lvroyce at linux.vnet.ibm.com>
---
 src/kimchi/config.py.in | 2 +-
 tests/test_config.py.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/kimchi/config.py.in b/src/kimchi/config.py.in
index ae35f1a..74c8fa5 100644
--- a/src/kimchi/config.py.in
+++ b/src/kimchi/config.py.in
@@ -220,7 +220,7 @@ class KimchiConfig(dict):
             'tools.staticdir.on': True,
             'tools.staticdir.dir': '%s/ui/pages/help' % paths.prefix,
             'tools.staticdir.index': 'en_US/index.html',
-            'tools.nocache.on': False
+            'tools.nocache.on': True
         }
     }
 
diff --git a/tests/test_config.py.in b/tests/test_config.py.in
index f651922..a78cb04 100644
--- a/tests/test_config.py.in
+++ b/tests/test_config.py.in
@@ -172,7 +172,7 @@ class ConfigTests(unittest.TestCase):
                 'tools.staticdir.on': True,
                 'tools.staticdir.dir': '%s/ui/pages/help' % paths.prefix,
                 'tools.staticdir.index': 'en_US/index.html',
-                'tools.nocache.on': False
+                'tools.nocache.on': True
             }
         }
 
-- 
1.8.3.2




More information about the Kimchi-devel mailing list