summaryrefslogtreecommitdiffstats
path: root/dtml/cache.dtml
diff options
context:
space:
mode:
Diffstat (limited to 'dtml/cache.dtml')
-rw-r--r--dtml/cache.dtml88
1 files changed, 88 insertions, 0 deletions
diff --git a/dtml/cache.dtml b/dtml/cache.dtml
new file mode 100644
index 0000000..64060eb
--- /dev/null
+++ b/dtml/cache.dtml
@@ -0,0 +1,88 @@
+<dtml-var manage_page_header>
+<dtml-var manage_tabs>
+
+<p class="form-help">
+This form shows all non-anonymous logged-in users in the cache
+at this moment.
+</p>
+
+<form action="manage_reinit" method="post">
+<table cellpadding="2" cellspacing="0" width="98%">
+ <tr class="section-bar">
+ <td colspan="2" align="left" valign="top"><div class="form-label">
+ Purge all caches
+ </div></td>
+ </tr><tr>
+ <td align="left" valign="top"><div class="form-text">
+ Empty all caches and force reloading of user records
+ from LDAP.
+ </div></td>
+ <td align="left" valign="top"><div class="form-element">
+ <input type="submit" value=" Purge all caches " />
+ </div></td>
+ </tr>
+</table>
+</form>
+
+<p>&nbsp;</p>
+
+<table cellpadding"3" cellspacing="0" width="98%">
+ <tr class="section-bar">
+ <td align="left" valign="top"><div class="form-label">
+ Cached users
+ </div></td>
+ </tr>
+</table>
+
+<dtml-in expr="getUsers()">
+
+ <dtml-if name="sequence-start">
+ <br />
+ <table border="1" cellpadding="2">
+ <tr>
+ <td><div class="form-label">
+ UserID
+ </div></td>
+ <td><div class="form-label">
+ Roles
+ </div></td>
+ <td><div class="form-label">
+ Last Access time
+ </div></td>
+ <td><div class="form-label">
+ Cache Expires
+ </div></td>
+ </tr>
+ </dtml-if>
+
+ <tr>
+ <td valign="top"><div class="form-text">
+ <dtml-var expr="getUserName()">
+ </div></td>
+ <td valign="top"><div class="form-text">
+ <dtml-in expr="getRoles()">
+ <dtml-var name="sequence-item"><br>
+ </dtml-in>
+ </div></td>
+ <td valign="top"><div class="form-text">
+ <dtml-var expr="getLastActiveTime()" fmt=Time>
+ </div></td>
+ <td valign="top"><div class="form-text">
+ <dtml-var expr="getExpireTime()" fmt=Time>
+ </div></td>
+ </tr>
+
+ <dtml-if name="sequence-end">
+ </table>
+ </dtml-if>
+
+<dtml-else>
+ <br />
+ <div class="form-text">
+ No users in cache
+ (superuser is never cached)
+ </div>
+
+</dtml-in>
+
+<dtml-var manage_page_footer>