随笔-61  评论-13  文章-19  trackbacks-0


<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="oscache" %>
<%
try{
session.invalidate();
}catch(Exception e){}
String scope = "application";
if (request.getParameter("scope") != null)
{
 scope = request.getParameter("scope");
}

boolean refresh = false;
if (request.getParameter("refresh") != null)
{
 refresh = true;
}

boolean forceCacheUse = false;
if (request.getParameter("forceCacheUse") != null)
{
 forceCacheUse = true ;
}
%>
<oscache:cache   duration="40s" refresh="<%= request.getParameter("refresh") == null ? false : true %>" scope="<%= scope %>">

// *****************************页面部分*********************************//

</oscache:cache>

posted on 2006-03-21 12:02 xnabx 阅读(159) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: