[opencms-dev] OpenCMS and OSCache

Alexander Kandzior alex at opencms.org
Wed Sep 15 11:14:28 CEST 2004


Tristan,

If you make changes to the include mechanism please keep in mind that most
of the code actually deals with the FlexCache implementation of OpenCms.
Keeping this functionality intact is highly important.

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com <http://www.alkacon.com/> 



 


________________________________

	From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Tristan Tarrant
	Sent: Wednesday, September 15, 2004 10:45 AM
	To: OpenCMS
	Subject: Re: [opencms-dev] OpenCMS and OSCache
	
	


	On Wed, 2004-09-15 at 10:36 +0200, Tristan Tarrant wrote:
	

		Hi guys,
		I am trying to use the OSCache tags within JSPs managed by
OpenCMS (CVS HEAD).
		For some reason the cache tags fail to cache elements
included with <cms:include>. The first time round the content is shown, but
if I reload the page the parts included with <cms:include> don't appear.
		I noticed that OpenCMS has its own implementation of
RequestDispatcher.include() and I believe it is not behaving correctly. Any
tips on how it works ?
		


	I've read the code for CmsFlexRequestDispatcher and I've noticed
this:
	


		That leads to a solution where the data is first written to
the bufferd stream, 
		but without includes. Then it is parsed again later 
		(in response.processCacheEntry()), enriched with the 
		included elements that have been ommitted in the first case.
		I would love to see a simpler solution, but this works for
now.
		
		

	While I'd agree that it works for now, it breaks the semantics of
how standard JSP pages work.
	I'll try and figure out a way to fix it, but any input is
appreciated.
	
	Tristan 





More information about the opencms-dev mailing list