Commits

(no ...@81dbac14-341a-0410-aa85-cbcd92e6f43e  committed 27630e6

This commit was manufactured by cvs2svn to create branch 'os'.

  • Participants
  • Parent commits bc8c508
  • Branches os

Comments (0)

Files changed (1)

File src/webapp/groupTest.jsp

+<%@ page import="java.util.*" %>
+<%@ taglib uri="oscache" prefix="cache" %>
+
+<head>
+<title>Test Page</title>
+<style type="text/css">
+body {font-family: Arial, Verdana, Geneva, Helvetica, sans-serif}
+</style>
+</head>
+<body>
+
+<a href="<%= request.getContextPath() %>/">Back to index</a><p>
+<hr>Flushing 'group2'...<hr>
+<cache:flush group='group2' scope='application'/>
+<hr>
+<cache:cache key='test1' groups='group1,group2' duration='5s'>
+    <b>Cache Time</b>: <%= (new Date()).getTime() %><br>
+    This is some cache content that is in 'group1' and 'group2'. Normally it would refresh if it
+    was more than 5 seconds old, however the &lt;cache:flush group='group2' scope='application'&gt;
+    tag causes this entry to be flushed on every page refresh.<br>
+</cache:cache>
+<hr>
+<cache:cache key='test2' groups='group1' duration='5s'>
+    <b>Cache Time</b>: <%= (new Date()).getTime() %><br>
+    This is some cache content that is in 'group1' (refreshes if more than 5 seconds old)<br>
+</cache:cache>
+<hr>
+</body>
+</html>