Re: AW: Barracuda -- caching

"Diez B. Roggisch" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

> Barracuda has a general-purpose, highly configurable and flexible caching
> mechanism.
>
> My question:
> - can this mechanism be easily turn on/off without getting into the code?

I have the presumption that you two talking of different caching aproaches 
here. It appears to me that you want something like a vignette story-server 
that makes it possible to cache html-pages, and externally control the 
contents and properties (aka lifetime of entries and such things) of it. The 
short answer is: no.

Using the object repository (or any other session/static map based approach) 
makes it possible to create such a facility, but its not implemented yet.

For jsp, there exists a promising approach called oscache. It would be 
possible to rollout a similar mechanism in barracuda, using DOM-Trees and 
BTemplates, but so far its not there. The trickiest part would be generating 
a unique id function, and the lazy execution of data-providing code. 

So far, we have implemented caching based on the data-objects used to fill the 
template-models and thus the html-pages. That resulted in rendering the dom 
every time, but prevented unneccessary db-queries. Actually, that was fast 
enought for us.

Regards,

Diez
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/nU1CBUNnEs5xWG4RAt5EAJ9/1adHiMPhzJC1/2CoaTte/Z9WEgCeOJvb
xit7Gqyee6cYbXd5VXrfOXY=
=4lyX
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.