cache.jsp 2.58 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>

<%@include file="/WEB-INF/jsp/init.jsp"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<html>
<head>
<title><spring:message code="admin.cache.page.title" /></title>
</head>
<body>
Matija Obreza's avatar
Matija Obreza committed
11
12
13
  <h1>
    <spring:message code="admin.cache.page.title" />
  </h1>
Matija Obreza's avatar
Matija Obreza committed
14

Matija Obreza's avatar
Matija Obreza committed
15
  <%@ include file="/WEB-INF/jsp/admin/menu.jsp"%>
Matija Obreza's avatar
Matija Obreza committed
16

17

Matija Obreza's avatar
Matija Obreza committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  <form method="post" action="<c:url value="/admin/cache/clearTilesCache" />">
    <input type="submit" class="btn btn-default" value="Clear Tiles cache" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

  <form method="post" action="<c:url value="/admin/cache/clearCaches" />">
    <input type="submit" class="btn btn-default" value="Clear all caches" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

  <c:forEach items="${cacheMaps}" var="cacheMap">
    <h3>
      <c:out value="${cacheMap.serviceName}" />
      <c:out value="${cacheMap.name}" />
    </h3>
Matija Obreza's avatar
Matija Obreza committed
35
36
37
38
39
40
    <form method="post" action="<c:url value="/admin/cache/clearCache" />">
      <input type="hidden" name="name" value="${cacheMap.name}" />
      <input type="submit" class="btn btn-default" value="Clear" />
      <!-- CSRF protection -->
      <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
    </form>
Matija Obreza's avatar
Matija Obreza committed
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
    <c:set value="${cacheMap.mapStats}" var="mapStat" />

    <div class="row">
      <div class="col-xs-6 col-sm-4">
        <spring:message code="cache.stat.map.ownedEntryCount" />
      </div>
      <div class="col-xs-6 col-sm-8">
        <c:out value="${mapStat.ownedEntryCount}" />
      </div>
    </div>

    <div class="row">
      <div class="col-xs-6 col-sm-4">
        <spring:message code="cache.stat.map.lockedEntryCount" />
      </div>
      <div class="col-xs-6 col-sm-8">
        <c:out value="${mapStat.lockedEntryCount}" />
      </div>
    </div>

    <div class="row">
      <div class="col-xs-6 col-sm-4">
        <spring:message code="cache.stat.map.puts" />
      </div>
      <div class="col-xs-6 col-sm-8">
        <c:out value="${mapStat.putOperationCount}" />
      </div>
    </div>

    <div class="row">
      <div class="col-xs-6 col-sm-4">
        <spring:message code="cache.stat.map.hits" />
      </div>
      <div class="col-xs-6 col-sm-8">
        <c:out value="${mapStat.hits}" />
      </div>
    </div>
  </c:forEach>

  <c:forEach items="${cacheOthers}" var="cacheOther">
    <h3>
      <c:out value="${cacheOther}" />
      <c:out value="${cacheOther}" />
    </h3>
  </c:forEach>
86
87
</body>
</html>