Re: Urgent: Nesting of OSCache tags

"Starzer Robert" <[email protected]>
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <[email protected]>
hi,

i'm using oscache with nested tags without problems -
but i use my own tag

.....i agree, it should only be a key issue

<snip CacheTag.java>
.....
  // This allows to have multiple cache tags on a single page without
        // having to specify keys. However, nested cache tags are not
supported.
        // In that case you would have to supply a key.
        String suffix = null;

        if (key == null) {
....
</snip>

-> you have to supply a key or you could build your own cache-tag
or extend the existing....


--__--__--

Message: 1
Date: Sun, 1 Feb 2004 17:14:27 -0600
From: Scott Farquhar <[email protected]>
To: =?iso-8859-1?Q?Bj=F8rn_Wang?= <[email protected]>
Cc: [email protected]
Subject: Re: [Opensymphony-oscache] Urgent: Nesting of OSCache tags

On Sun, Feb 01, 2004 at 12:25:41PM +0100, Bj=F8rn Wang wrote:
> I have some questions regarding nesting og cache tags, which I hope to
> get your opinion on.
> =20
> We're about to go into production with a site that uses nested cache ta=
gs
> for caching of both HTML pages and HTML fragments (partial pages).
> We're dependant on caching HTML-fragments to meet get the required
> performance.
> =20
> We've been testing use of nested tags using OSCache even though the
> FAQ clearly states that this is not supported. All the same, it seems t=
o
> work well. Still, we're reluctant to go into production with nested tag=
s if
> this is an unsupported feature.
> =20
> Question #1:
> What are the consequences of nesting tags in OSCache?

I think that the problems lie with the generation of the keys that are
used for the caches.  I would ensure that you specify a key for each
cache tag that you want to use.

I'm not 100% sure if there are any other considerations - maybe someone
else can help our here.

Cheers,
Scott

> Question #2:
> What would you recommend as a workaround to get nested tags
> working? We're looking into using BEA WebLogics own cache tags for
> the "inner" cache tags (fragment caching), but we're not quite content
> with the performance and quality of this cache. Using OSCache would
> be preferable.
> =20
> Hoping to get some advice. :-)
> =20
> =20
> Best regards,
> Bjorn Wang
> =20



--__--__--

_______________________________________________
Opensymphony-oscache mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensymphony-oscache


End of Opensymphony-oscache Digest



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
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.