On Tue, 12 Feb 2002, Tsui, Alban wrote: > So do you mean that I can wrap my pipeline into > <map:read src="foo.jpg"> > > < ... my pipeline ... > > > <expires>1000000</expires> > </map:read> > > ??
No, definitively not! The sample above was meant to be used for already generated *.pgj laying around on the server side. Giacomo > > My url is someting like ... cocoon/graphics/gengraph?value=10&point=5 for > generating svg and then serialised as jpegs. > > Or do you mean I can stick an <expires> into my pipeline? Does that mean the > pipeline will check if the input url is the same, ... if it is not the same > then... it will run and it is the same and it hasn't expired, it will > generate it again? > > Is there any documenation of <expires>? > > > > > > -----Original Message----- > > From: giacomo [mailto:[EMAIL PROTECTED]] > > Sent: 12 February 2002 14:22 > > To: [EMAIL PROTECTED] > > Subject: RE: controlling cocoon cache per pipeline? > > > > > > On Tue, 12 Feb 2002, giacomo wrote: > > > > > On Tue, 12 Feb 2002, Tsui, Alban wrote: > > > > > > > Well ... I want to cahce the generated Jpegs files rather > > than caching the > > > > pipeline. Is this the same problem? > > > > Sorry, I've overseen the word "generated" infront of Jpegs. For > > generated stuff (which has a pipeline) it's all the same mechanisms. > > > > Giacomo > > > > > > > > No you'll probably use a reader for Jpegs and readers can > > be configured > > > to tell the browser about exiration times: > > > > > > <map:read src="foo.jpg"> > > > <expires>1000000</expires> > > > </map:read> > > > > > > Giacomo > > > > > > > > > > > > -----Original Message----- > > > > > From: giacomo [mailto:[EMAIL PROTECTED]] > > > > > Sent: 12 February 2002 13:58 > > > > > To: [EMAIL PROTECTED] > > > > > Subject: RE: controlling cocoon cache per pipeline? > > > > > > > > > > > > > > > On Tue, 12 Feb 2002, Vadim Gritsenko wrote: > > > > > > > > > > > > From: Tsui, Alban [mailto:[EMAIL PROTECTED]] > > > > > > > > > > > > > > I have a pipeline in sitemap for generating svg graphics. > > > > > > > > > > > > > > Everytime a user accesses it, it gets called but is there > > > > > anyway to > > > > > > cache > > > > > > > the grpahics so that next time, a "cached-file" gets sent > > > > > instead of > > > > > > going > > > > > > > through the xsp, transform, serializer steps to generate > > > > > a new one? > > > > > > > > > > > > Pipeline is cached automatically when every step in the > > > > > pipeline can be > > > > > > cached. > > > > > > > > > > Read: When every step in the pipeline can be cached. > > > > > > > > > > As you mentioned XSP (which are not cachable by > > default) I suggest > > > > > adding a generateKey method to your XSP (there are > > cocoon samples for > > > > > it in src/webapp/docs/samples/xsp/cacheable.xsp). > > > > > > > > > > Giacomo > > > > > > > > > > > > > > > > > > > > > > > > Or can we generate those files dynamically and get them > > > > > written to the > > > > > > disc > > > > > > > while serving the image when the pipeline first gets > > > > > called, then we > > > > > > can > > > > > > > retrieve the file into the piple line next time it is > > > > > called? Hope I > > > > > > am > > > > > > > clear on my question! > > > > > > > > > > > > Yes, you can come up with something like this, but why if > > > > > Cocoon already > > > > > > caches all the pipelines automatically (see above)? > > > > > > > > > > > > > > > > > > > Also is it possible to set up a pipeline so that when it > > > > > is called, > > > > > > cocoon > > > > > > > will clear "certain" cache from the disc/memory? I might > > > > > need to do > > > > > > that > > > > > > > once per day if I can cache those images... > > > > > > > > > > > > This is also done automatically as soon as pipeline > > is requested and > > > > > > it's content has been changed. > > > > > > > > > > > > Vadim > > > > > > > > > > > > > I am using the latest release of Cocoon 2.0.1 running on > > > > > Tomcat 4.0.1. > > > > > > > > > > > > > > Regards > > > > > > > Alban > > > > > > > > > > > > > > This message may contain privileged and/or confidential > > > > > information. > > > > > > If you > > > > > > > have received this e-mail in error or are not the > > > > > intended recipient, > > > > > > you > > > > > > > may not use, copy, disseminate or distribute it; do > > not open any > > > > > > > attachments, delete it immediately from your system > > and notify the > > > > > > sender > > > > > > > promptly by e-mail that you have done so. Thank you. > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > 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]> > > > > > > > > > > > > > This message may contain privileged and/or confidential > > information. If you > > > > have received this e-mail in error or are not the > > intended recipient, you > > > > may not use, copy, disseminate or distribute it; do not open any > > > > attachments, delete it immediately from your system and > > notify the sender > > > > promptly by e-mail that you have done so. Thank you. > > > > > > > > > > --------------------------------------------------------------------- > > > > 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]> > > > > This message may contain privileged and/or confidential information. If you > have received this e-mail in error or are not the intended recipient, you > may not use, copy, disseminate or distribute it; do not open any > attachments, delete it immediately from your system and notify the sender > promptly by e-mail that you have done so. Thank you. > > --------------------------------------------------------------------- > 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]>