[opencms-dev] OpenCMS y OScache

Gómez Romero, Mª del Carmen MCGOMEZ at sadiel.es
Mon Feb 7 08:43:27 CET 2005




Hi,

I use OsCache with OpenCMS but my includes not appair. I read a message
but I don't understand how can I solve the problem.Can anybody help me?

This is the message:

		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 



Mª del Carmen Gómez Romero 
e-mail: <mcgomez at sadiel.es> 




-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 1909 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050207/a6615432/attachment.bin>


More information about the opencms-dev mailing list