You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Andrey Almirov <al...@inbox.ru> on 2003/08/23 16:01:31 UTC

Cache problem

Hi All!

I tried to write the XSL portlet. But the I had met some (I think) cache problems.

I have *.xml and *.xsl files and the following portlet:

    <portlet-entry name="BrandPortlet" hidden="false" type="ref"
        parent="XSL" application="false">
        <meta-info>
            <title>Config Brand Portlet</title>
            <description>This portlet shows our brands</description>
        </meta-info>
        <classname>org.apache.jetspeed.portal.portlets.XSLPortlet</classname>
        <parameter name="stylesheet.text/html" value="/xml/x.xsl"
            hidden="false" cachedOnName="false" cachedOnValue="false"/>
        <media-type ref="html"/>
        <url cachedOnURL="false">/xml/x.xml</url>
        <category group="Jetspeed">xslt</category>
    </portlet-entry>

All works good. But when I have changed xml or xsl, this changes are not appear
in browser till I restart server.

I have a look to the source of XSL portlet. It takes the source from cache system:

in = new InputSource( JetspeedDiskCache.getInstance().getEntry( url ).getReader() );
style = new InputSource( JetspeedDiskCache.getInstance().getEntry( stylesheet_url.getReader() );

Therefore I think problem lies in my tuning of JetSpeed. 

Configuration: Win 2000, JDK 1.4, Tomcat 4.1.24, JetSpeed-1.4-b4.

Does anybody have this problem? Does anybody knows the solution? 

Thanks a lot! 

Andrey



Re: Cache problem

Posted by Helmut Tammen <HT...@htsystemloesungen.de>.
I guess it´s this setting in WEB-INF/conf/JetspeedResources.properties 
but I´m not sure.

#########################################
# Document refresh settings             #
#########################################
#how many seconds to cache portlets by default.  Portlets that allows 
themselves
#to be refreshed will usually pay attention to this interval
#Default: 3600
refresh.portlet.default = 3600