> From: Volker Schneider [mailto:[EMAIL PROTECTED]]
> 
> Hi Vadim,
...
> So all included files and the result (xsp-main) seems to be cached.

Good.


> Then I tried to start the 4th pipeline and I found the same messages
in the
> log. Caching seems to be working. Next I'll try to make the xsp
cacheable.
> Do you know where I can find more information about that, more than it
is
> written in cacheable.xsp?

Cacheable.java. But it has (almost) same info.


> Why do I have to generate a unique key for example?

Cache is a hashmap. Responses are cached by the key. Same (XSP) page
might want to have more then one cached response depending on the
environment (e.g., I have an XSP which is different for logged in and
not logged in users - and I use cache to store both variants). Try &
analyze cacheable.xsp sample.

Vadim

 
> Thank you, best regards
> - Volker -
> 
> -----Original Message-----
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: Dienstag, 14. Mai 2002 16:56
> To: [EMAIL PROTECTED]
> Subject: RE: CachingCIncludeTransformer - no effect?
> 
> 
> > From: Volker Schneider [mailto:[EMAIL PROTECTED]]
> >
> > Hi Vadim,
> >
> > how does cocoon decide, which pipelines can be cached?
> 
> All pipelines components should be cacheable, then result of the whole
> pipeline is cached.
> 
> 
> > My included files are all static at the moment and go into a file
> generator.
> > They unfortunately end with .xsp but they are xml files. How can I
> make a
> > xml file cacheable?
> 
> Cool then, they should be cached already. Try accessing these
pipelines
> directly and look for messages from the store. Then proceed to
debugging
> include caching.
> 
> 
> > Does cocoon check for the file extension?
> 
> No.
> 
> Vadim
> 
> >
> > Best regards
> > - Volker -
> >
> > -----Original Message-----
> > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > Sent: Dienstag, 14. Mai 2002 16:31
> > To: [EMAIL PROTECTED]
> > Subject: RE: CachingCIncludeTransformer - no effect?
> >
> >
> > > From: Volker Schneider [mailto:[EMAIL PROTECTED]]
> > >
> > > Hi Vadim,
> > >
> > ...
> > >
> > > (2) First of all I want to try caching without xsp caching.
That'll
> be
> > the
> > > next step.
> >
> > It won't cache *non-cacheable* resources. Please try other way
around:
> > first make *all* included pipelines fully cacheable.
> >
> > Vadim
> >
> >
> > >
> > > Best regards
> > > - Volker -
> > >
> > > -----Original Message-----
> > > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > > Sent: Dienstag, 14. Mai 2002 14:29
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: CachingCIncludeTransformer - no effect?
> > >
> > >
> > > > From: Volker Schneider [mailto:[EMAIL PROTECTED]]
> > > >
> > > > Hi Vadim,
> > > >
> > > > I got some messages containing MRUMemoryStore
> > > >
> > > > [13.05.02 15:42:55:881 GMT+02:00] 55f62073 WebGroup      I
> > SRVE0091I:
> > > > [Servlet-Protokoll]: DEBUG   (2002-05-13) 15:42.55:881
> [core.man]
> > > > (Unknown-URI) Unknown-thread/ExcaliburComponentManager: Adding
> > > component
> > > > (org.apache.cocoon.components.store.Store/TransientCache =
> > > > org.apache.cocoon.components.store.MRUMemoryStore)
> > >
> > > 1. Look for "Holding object in memory:", "Found key:", "NOT Found
> > key:".
> > > 2. Make sure all your XSPs are cacheable (otherwise, they won't go
> to
> > > cache)
> > >
> > > Vadim
> > >
> > >
> > > > I can find some look-ups in the cache but not in combination
with
> > > > CachingCIncludeTransformer
> > > >
> > > > Best regards
> > > > - Volker -
> > > >
> > > > -----Original Message-----
> > > > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > > > Sent: Montag, 13. Mai 2002 14:52
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: CachingCIncludeTransformer - no effect?
> > > >
> > > >
> > > > Make sure your logkit.xml looks like this:
> > > >
> > > >
> > >
> >
>
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/WEB-INF/logkit.
> > > > xconf?rev=1.8&content-type=text/vnd.viewcvs-markup
> > > >
> > > > Vadim
> > > >
> > > > > From: Volker Schneider [mailto:[EMAIL PROTECTED]]
> > > > >
> > > > > Hi Vadim,
> > > > >
> > > > > the DEBUG message I got from CachingCIncludeTransformer was:
> > > > >
> > > > > DEBUG   (2002-05-13) 09:42.11:668
> > > > > [sitemap.transformer.cinclude](/Cocoon/xsp-result)
> > > > > Servlet.Engine.Transports:10/CachingCIncludeTransformer:
> > > > > generateValidity
> > > > >
> > > > > Followed by:
> > > > >
> > > > > DEBUG   (2002-05-13) 09:42.11:688
> [sitemap](/Cocoon/xsp-result)
> > > > > Servlet.Engine.Transports:10/sitemap_xmap: Processing internal
> > > sitemap
> > > > > request
> > > > >
> > > > > DEBUG   (2002-05-13) 09:42.11:688
> [sitemap](/Cocoon/xsp-result)
> > > > > Servlet.Engine.Transports:10/sitemap_xmap: Matched wildcard
> > pattern
> > > > > xsp-main
> > > > > ...
> > > > >
> > > > > "MRU" or "MRUStore" was not found whithin all my logs.
> > > > >
> > > > > Best regards
> > > > > - Volker -
> > > > >
> > > > > -----Original Message-----
> > > > > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Freitag, 10. Mai 2002 14:55
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: RE: CachingCIncludeTransformer - no effect?
> > > > >
> > > > >
> > > > > > From: Volker Schneider [mailto:[EMAIL PROTECTED]]
> > > > > >
> > > > > > Dear colleagues,
> > > > > >
> > > > > > I have built a xsp-page which takes two xml-Files and builds
a
> > xsp
> > > > > > which
> > > > > > will be compiled by another pipeline:
> > > > > >
> > > > > >    <map:match pattern="xsp-part1">
> > > > > >      <map:generate src="part1.xsp"/>
> > > > > >      <map:serialize type="xml"/>
> > > > > >    </map:match>
> > > > > >
> > > > > >    <map:match pattern="xsp-part2">
> > > > > >      <map:generate src="part2.xsp"/>
> > > > > >      <map:serialize type="xml"/>
> > > > > >    </map:match>
> > > > > >
> > > > > >    <map:match pattern="xsp-main">
> > > > > >      <map:generate src="main.xsp"/>
> > > > > >      <map:transform type="cinclude"/>
> > > > > >      <map:serialize type="xml"/>
> > > > > >    </map:match>
> > > > > >
> > > > > >    <map:match pattern="xsp-result">
> > > > > >     <map:generate type="serverpages"
src="cocoon:/xsp-main"/>
> > > > > >     <map:serialize type="xml"/>
> > > > > >    </map:match>
> > > > > >
> > > > > > This is not very performant, so that I tried to use the
> > > > > > CachingCIncludeTransformer instead of the
CIncludeTransformer,
> > but
> > > > > > "bad"
> > > > > > performance did not change. My other xsp sample pages run
2-3
> > > times
> > > > > > faster
> > > > > > than this. One point is, that I have 4 pipelines here and
with
> > > every
> > > > > > new
> > > > > > included part I will get a further one. I think that caching
> of
> > > the
> > > > > > CInclude
> > > > > > result will be very helpful in this case.
> > > > > >
> > > > > > Is it necessary to switch the CachingCIncludeTranformer to
> "on"?
> > I
> > > > > > looked
> > > > > > into the source code, but I did not find anything that looks
> > like
> > > a
> > > > > > switch
> > > > > > or a helpful attribute.
> > > > >
> > > > > Do you have CachingCIncludeTranformer declared in the sitemap?
> > > > >
> > > > > Does it actually work (turn on debug and look for messages
from
> > the
> > > > > MRUStore)?
> > > > >
> > > > > Vadim
> > > > >
> > > > >
> > > > > > Can anybody help me?
> > > > > >
> > > > > > Thank you, best regards
> > > > > > - Volker -
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > Please check that your question has not already been answered in
the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
<[EMAIL PROTECTED]>
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > Please check that your question has not already been answered in
the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
<[EMAIL PROTECTED]>
> >
> >
> >
---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
> >
> >
---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to