1. opensymphony
  2. oscache


oscache / src / webapp / silentTest.jsp

<%@ page import="java.util.*" %>
<%@ taglib uri="oscache" prefix="cache" %>

<title>Test Page - Silent Mode</title>
<style type="text/css">
body {font-family: Arial, Verdana, Geneva, Helvetica, sans-serif}

<a href="<%= request.getContextPath() %>/">Back to index</a><p>

Testing the silent attribute...<br/>
<cache:cache key="silentTest" mode="silent" duration="10s">
This content was inserted into the cache silently. Duration = 10 seconds. Current time = <%= new Date() %>
<br/>Some content has been silently cached<br/>
<cache:cache key="silentTest">
You should never get to see this text!