diff farol/templates/about.j2 @ 12:4219d6fb4c38

Implement three kind of caches
author Benoît Allard <benoit.allard@greenbone.net>
date Tue, 30 Sep 2014 12:18:52 +0200
parents 2ce3676c9b2e
children f8d51aaac8bc
line wrap: on
line diff
--- a/farol/templates/about.j2	Mon Sep 29 14:19:07 2014 +0200
+++ b/farol/templates/about.j2	Tue Sep 30 12:18:52 2014 +0200
@@ -38,11 +38,20 @@
   <p>This platform is meant as a way to review / create / edit / publish Security Advisories in an accessible way</p>
   <p>In the current version, Advisories not currently saved are kept in memory of the running process. If the process terminates, and they are not saved, documents are lost.</p>
   {% if config.DEBUG and not config.DEBUG_SURE %}
+    <hr>
+    <h3 id="debug">Debug Mode</h3>
+    <p>Your application is Running in Debug mode. While this might be a choice you made, this is not suitable for Production deployment. The <a href="/console">console</a> is an example of unsafe debug facilities.</p>
+    <p>You can turn the Debug mode off by setting <code>DEBUG=False</code> in the configuration file located at the following path: <code>{{ instance_dir }}/farol.cfg</code>.</p>
+    <p>If you want to remove this message and the DEBUG Footer alert, but still want to keep the Debug mode on, just set <code>DEBUG_SURE=True</code> in your configuration file.</p>
+  {% endif %}
   <hr>
-  <h3 id="debug">Debug Mode</h3>
-  <p>Your application is Running in Debug mode. While this might be a choice you made, this is not suitable for Production deployment. The <a href="/console">console</a> is an example of unsafe debug facilities.</p>
-  <p>You can turn the Debug mode off by setting <code>DEBUG=False</code> in the configuration file located at the following path: <code>{{ instance_dir }}/farol.cfg</code>.</p>
-  <p>If you want to remove this message and the DEBUG Footer alert, but still want to keep the Debug mode on, just set <code>DEBUG_SURE=True</code> in your configuration file.</p>
+  <h3 id="caching">Document cache</h3>
+  {% if not caching %}
+    <p class="text-muted">Document cache is <strong>disabled</strong> by configuration.</p>
+  {% elif caching == 'global' %}
+    <p>All user share a <strong>global cache</strong>.</p>
+  {% else %}
+    <p>Each session have a <strong>private cache</strong>, sessions are bound to a browser <em>session</em>. They are usually reset when the browser is restarted.</p>
   {% endif %}
   <hr>
   <p><strong>Farol</strong> is published under GPLv2+, and is Copyright &copy; Greenbone Networks GmbH.</p>

http://farol.wald.intevation.org