Christian,
When we've had the need to cache a query, we just throw the result (as a
DOM object) into the sesssion. I'm including the sample pipeline. I'll
typicailly aggregate the results of this with something else (usually a
dynamic query) and I'm all set. When I want to clear the cache, the
I just skimmed through the mailing list to find ideas of how to cache a
pipeline starting with a request generator and later on passing data
through the SQLTransformer.
Did you or anybody else follow up on this idea?
NB: Caching of the request generator would probably also need to cache
request
Reinhard Pötz wrote:
As already mentioned I don't know how to set the expiration time.
If you use a source the only way to pass a parameter is the source
string itself (at least AFAIK). I'm not sure if something like
cache:3h//cocoon://resource/that/takes/a/long/time or
cache:100m//cocoon://res
> From: Charles Yates [mailto:[EMAIL PROTECTED]
>
> It uses DeltaTimeCacheValidity which accepts a time value in its
> constructor:
>
> http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/caching
> /DeltaTimeCacheValidity.html
>
> The CacheableSource creates one of these in its
> cons
TED]
Sent: Thursday, February 27, 2003 2:56 PM
To: [EMAIL PROTECTED]
Subject: Re: caching
I am curently testing a 'CacheableSource' and
'CacheableSourceFactory' that does these things. Its not
ready for prime time yet but it does do the things mentioned
here.
D]
> Subject: Re: caching
>
>
> I am curently testing a 'CacheableSource' and
> 'CacheableSourceFactory' that does these things. Its not
> ready for prime time yet but it does do the things mentioned
> here. Used like this:
>
> cache://http://ww
nt: Thursday, February 27, 2003 12:39 PM
To: [EMAIL PROTECTED]
Subject: RE: caching
From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]
Reinhard Pötz wrote:
Do you know whether there is some mechanism to get the old
(=expired)
content if the external source
> -Original Message-
> From: Reinhard Pötz [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 27, 2003 12:39 PM
> To: [EMAIL PROTECTED]
> Subject: RE: caching
>
>
> > From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]
> > Reinhard Pötz wrote:
> >
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]
> Reinhard Pötz wrote:
> > > > Do you know whether there is some mechanism to get the old
> > > (=expired)
> > > > content if the external source is not available after it
expired?
> > > >
> > > No, it's not possible.
> >
> > At which 'level' woul
Reinhard Pötz wrote:
> > > Do you know whether there is some mechanism to get the old
> > (=expired)
> > > content if the external source is not available after it expired?
> > >
> > No, it's not possible.
>
> At which 'level' would you solve that problem? Would you write a special
> generator?
>
Y
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]
> > From: Reinhard Pötz [mailto:[EMAIL PROTECTED]
> >
> > > Gianugo is changing some parts in the cocoon caching.
> Then you will
> > > be able to cache the complete pipeline for the expiration date
> > > without creating your own custom genera
> From: Reinhard Pötz [mailto:[EMAIL PROTECTED]
>
> > Gianugo is changing some parts in the cocoon caching. Then
> > you will be able to cache the complete pipeline for the
> > expiration date without creating your own custom generator.
>
> Do you know whether there is some mechanism to get the old
> Gianugo is changing some parts in the cocoon caching. Then
> you will be able to cache the complete pipeline for the
> expiration date without creating your own custom generator.
Do you know whether there is some mechanism to get the old (=expired)
content if the external source is not availab
> -Original Message-
> From: arturl [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 27, 2003 11:35 AM
> To: [EMAIL PROTECTED]
> Subject: caching
>
>
> Hello,
> I've asked this question some time ago, but got no answer.
> Is it possible to cache the content produced from file genera
Hi,
I have a 16MB XML file. I want to know how to cache it.
It is used in the generator.
1. Do i need to restart tomcat once i change the
cocoon.xconf file
2. Does the generator need additional paramerters?
3. Is there anything wrong with cocoon.xconf
I tried the standard things that I found
On Friday, Nov 15, 2002, at 17:43 Europe/London, Justin Fagnani-Bell
wrote:
If you're doing the SQL queries in a custom component (generator,
transformer) you can use Cocoon's caching system. Have you class
implement Cachable, and in the generateValidity() method you can
return an object wi
Jeremy,
If you're doing the SQL queries in a custom component (generator,
transformer) you can use Cocoon's caching system. Have you class
implement Cachable, and in the generateValidity() method you can return
an object with the last modification date of the database.
see :
http://xml.apach
On 14.Nov.2002 -- 11:37 AM, Jeremy Quinn wrote:
> Dear All,
>
> I have a set of related Tables in MySQL, which are used to build part
> of a site I am working on.
>
> We use SQL because of the related nature of the data, rather than any
> great need for dynamics.
>
> My SQL queries are broken
cheable
(in accordance with http spec).
Vadim
> Thanks,
> Elmar
>
> -Ursprüngliche Nachricht-
> Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 26. Juli 2002 15:24
> An: [EMAIL PROTECTED]
> Betreff: RE: caching strategy
>
>
&
I got sidetracked and am now trying (once again) to get Cocoon2 running on
our Linux server. We are using Cocoon 2.0.2, Tomcat 3.2.2 (with Apache),
RedHat 7.1, and IBM JDK 1.3.0.
My last post (12 Apr 2002) left me with this error message on Cocoon
startup:
message Language Exception
descriptio
> From: Sternath Elmar [mailto:[EMAIL PROTECTED]]
>
> Hello,
>
> I wrote an application reading data from another application server
and
> sending requests to this application server which manipulate these
data and
> reread the manipulated data. All this is done inside one pipeline
using
> URLMa
> From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
>
> I am currently using DirectoryGenerator.
> My concern is that it is probably a non-cacheable component, so each
time
> a request is made, each time a listing of my directory is made.
>
> Of course, files in my directory change once in a centu
RequestGenerator *should* cache. Give me a good reason why it shouldn't
have caching!
--Steve
> -Original Message-
> From: Stephen Ng [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 7:23 PM
> To: 'Vadim Gritsenko'; [EMAIL PROTECTED]
>
> May be you should consider different design, which is suited
> better for
> the problem? XSP pages with ESQL provide easy ability to program any
> caching behavior.
>
What?!? You just convinced me to go from XSP/ESQL to SQLTransformer! The
problem with ESQL is the Java recompilation, which is
> From: Stephen Ng [mailto:[EMAIL PROTECTED]]
>
> A couple of things I'd like to do with Cocoon caching; let me know if
this
> is crazy.
>
> 1. Add caching to the request generator. Many of my pipelines are
> transformations based upon the request, and since requestGenerator
currently
> does no
What I'd like to see is a flag that I can use to mark a map as cached and
the ability to specify a time-out.
For example:
In this case, what'ever is returned by "test", no matter what it is or how
it was generated would be cached for 300 seconds. The map wouldn't even try
to
> From: Michael Cortez [mailto:[EMAIL PROTECTED]]
>
> >> It does not *execute* XSP page neither *calls* XSP page.
> >> It merely *reads* XSP page, that's it.
>
> Ah, my mistake then, sorry. The interesting thing to note, is that it
did
> not give any errors calling it the way I did -- and when
> From: John Gilbertson [mailto:[EMAIL PROTECTED]]
>
> On Fri, 3 May 2002, Vadim Gritsenko wrote:
>
> >> The cached version it's using was me trying in work yesterday..
this
> >> morning it's still using that cached version, even though it's
> >> requesting the file each time I request the page
On Fri, 3 May 2002, Vadim Gritsenko wrote:
>> The cached version it's using was me trying in work yesterday.. this
>> morning it's still using that cached version, even though it's
>> requesting the file each time I request the page from it.
>
>Check last modified time in the HTTP response of you
>> It does not *execute* XSP page neither *calls* XSP page.
>> It merely *reads* XSP page, that's it.
Ah, my mistake then, sorry. The interesting thing to note, is that it did
not give any errors calling it the way I did -- and when I remove the
elements from the file and "read it" the way I
> From: Michael Cortez [mailto:[EMAIL PROTECTED]]
>
> >> Do you know about strip-root attribute?
> >>
>
> Uh, no -- So I can just do
>
>
>
> That would be so much better for me.
Yes.
> >> This is not valid XSP page. It must have one and only one
> >> element inside
> >> xsp:page elemen
>> Well... uh, it runs ==>
>> http://fclistserver.fullcoll.edu:8080/cocoon/ogl/Item78
>>
And here is the one that fails 3-4 out of five times -- but works sometimes
-- just keep refreshing... I don't get it...
http://fclistserver.fullcoll.edu:8080/cocoon/ogc/Item78.htm
For the above page, I'
> From: Michael Cortez [mailto:[EMAIL PROTECTED]]
>
> >> What do you mean - xsp:page stuck? It should never
> >> ever happen after XSP is correctly processed by the
> >> serverpages generator. May be you have problem with
> >> the XSP?
>
> Perhaps it's the way I'm using it...
>
> In my system,
>> Do you know about strip-root attribute?
>>
Uh, no -- So I can just do
That would be so much better for me.
>> This is not valid XSP page. It must have one and only one
>> element inside
>> xsp:page element.
>>
Well... uh, it runs ==>
http://fclistserver.fullcoll.edu:8080/cocoon/o
> From: Michael Cortez [mailto:[EMAIL PROTECTED]]
>
> >> What do you mean - xsp:page stuck? It should never
> >> ever happen after XSP is correctly processed by the
> >> serverpages generator. May be you have problem with
> >> the XSP?
>
> Perhaps it's the way I'm using it...
>
> In my system,
>> What do you mean - xsp:page stuck? It should never
>> ever happen after XSP is correctly processed by the
>> serverpages generator. May be you have problem with
>> the XSP?
Perhaps it's the way I'm using it...
In my system, I'm building up a number of DocBook pages from XML fragments
pul
> From: Michael Cortez [mailto:[EMAIL PROTECTED]]
>
> >> Don't think so. You have document() function somewhere,
> >> and for some reason, Cocoon failed to resolve the document:
>
> What I can't figure out is why the page renders at all! When I start
up
> Cocoon, my first request to the page wo
>> Don't think so. You have document() function somewhere,
>> and for some reason, Cocoon failed to resolve the document:
What I can't figure out is why the page renders at all! When I start up
Cocoon, my first request to the page works.
Then the next 1-3 requests return the null pointer excep
> From: Michael Cortez [mailto:[EMAIL PROTECTED]]
>
> Now that I've solved my DocBook rendering problem, I'm getting a new
> problem.
>
> Approximately every other request fails with a null pointer exception.
> Attached below is the full stack trace.
>
> I noticed, combing through it that it wa
> From: John Gilbertson [mailto:[EMAIL PROTECTED]]
>
> I'm trying to link Cocoon with Zope, to take advantage of all of
Zope's
> CMS features and interface etc, but havin git output XML for use in
> cocoon to produce nicely formatted web-pages, with the option of
> converting them to .rtf .pdf or
Simeon Walker wrote:
> Hi,
> I'm thinking of using Apache and mod_proxy as a front end
> to Cocoon 2. Has anyone done this?
I did it once with Cocoon 1.8. It works but don't expect high figures:
we are working on it, but as of now there is almost no way to cleverly
work on the "Expires" hea
- Original Message -
From: "Roberto Lo Giacco" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 9:13 PM
Subject: Caching
> Hello all,
> I'm not registered on this list, so I hope the system will accept my email
> and you'll answer me not just on the mailing li
42 matches
Mail list logo