Xml liferay中的缓存

Xml liferay中的缓存,xml,caching,liferay,liferay-6,Xml,Caching,Liferay,Liferay 6,我对liferay缓存有问题,所以问题是当我的缓存过期时间在刷新时过期portlet时,转到doView()方法,这里有if station,它是转到xml,如果xml被更新,则返回true/false。所以如果xml没有更新,我会给缓存一个新的setExpirationTime。。。但是在页面上,portlet没有显示任何内容。。缓存工作正常。。我的5分钟刷新没有更新doView方法,所以问题在于if station和这个render.Response 这是来源(示例): 方法 private

我对liferay缓存有问题,所以问题是当我的缓存过期时间在刷新时过期portlet时,转到doView()方法,这里有if station,它是转到xml,如果xml被更新,则返回true/false。所以如果xml没有更新,我会给缓存一个新的setExpirationTime。。。但是在页面上,portlet没有显示任何内容。。缓存工作正常。。我的5分钟刷新没有更新doView方法,所以问题在于if station和这个render.Response

这是来源(示例):

方法

private boolean isItNew(RenderRequest renderRequest,RenderResponse renderResponse) {
//go to XML and return true or false
return false;}

使用此portal.properties值进行测试:

#
# Specify the number of minutes before a session expires. This value is
# always overridden by the value set in web.xml.
#
session.timeout=30
并将相关值转换为web.xml

#
# Specify the number of minutes before a session expires. This value is
# always overridden by the value set in web.xml.
#
session.timeout=30