summaryrefslogtreecommitdiffstats
path: root/dtml/cache.dtml
blob: 64060ebf0581463a1e6bb81f7aec920c40014149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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>