AW: [opencms-dev] difference between the view inside OpenCms and published project
Hanjo Riege
Hanjo.Riege at framfab.de
Fri Oct 5 16:20:08 CEST 2001
Hi Hartmut,
this is a problem in the OpenCms element cache. I suppose you use the
default
CmsXmlNav class for your navigation. This class didnt return the correct
CacheDirectives
in Verison 4.4.0. This bug is fixed in Vesion 4.5.4.
Updating to a new Vesion will fix your problem.
If you use your own navigation class you have to add the method
getCacheDirectives to it:
public CmsCacheDirectives getCacheDirectives(CmsObject cms, String
templateFile, String elementName, Hashtable parameters,
String templateSelector) {
CmsCacheDirectives result = new CmsCacheDirectives(true);
result.setCacheUri(true);
result.renewAfterEveryPublish();
return result;
}
Regards,
Hanjo
More information about the opencms-dev
mailing list