Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Portlet Invalidation Caching

Re: Portlet Invalidation Caching

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Tue, 22 May 2007 15:21:04 +0200
Message-ID: <f2uqns$tjt$1@news5.zwoll1.ov.home.nl>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

kenneth.franqueiro_at_gmail.com wrote:
> I'm currently working on getting a handle on using invalidation
> caching and manually invalidating portlets in Oracle Portal 10.1.4. I
> found and followed the
> directions in their Developer's Guide (http://download-east.oracle.com/
> docs/cd/B14099_19/portal.1014/b14135/pdg_java_adv.htm#CHDGBJIH), but
> I'm having no luck getting the code for manually invalidating the
> cache to work. The call to invalidate() always returns 0, i.e. it
> didn't invalidate anything.
>
> The page DOES cache, and the cache DOES expire when the pageExpires
> period elapses; it simply doesn't invalidate when I manually tell it
> to in the code.
>
> Just to be sure, here's a list of what I *have* done:
> * added the init-param element inside web.xml
> * added the useInvalidationCaching element inside the provider.xml
> (and set pageExpires to 2)
> * ensured that the invalidation server is indeed running and being
> accessed successfully
> * added the code for manually invalidating the cache to my portlet
>
> In the way of other possibly-relevant configuration:
> * The portlet is on an otherwise blank page with nothing else on it,
> and in a provider with nothing else in it.
> * The page is set to "Don't Cache".
> * The provider is set to Public information level.
>
> Things I've noticed thus far:
> If I manually clear out the cache for the provider via the portal's
> interface, I can see in the webcache log that one object does indeed
> become invalidated. However, if I manually clear out the cache for
> the *portlet*, it invalidates 0 objects. Not sure whether this is a
> hint at all as to what's wrong.
>
> I've been struggling with this for a while now, and I'm really not
> sure what little thing I might be missing, or if I'm entirely off the
> mark altogether. Any pointers would be
> greatly appreciated. I'm bound to have left out some details
> somewhere, so please say so if there's any further information I can
> investigate/provide to help narrow down the issue.
>
> Thanks in advance.
> --Ken
>

This bugs me :)
Think you need a call to see the result of the invalidation? http://download-uk.oracle.com/docs/cd/B14099_11/caching.1012/b10402/oracle/webcache/invalidation/InvalidationResult.html - --
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)

iD8DBQFGUu5ALw8L4IAs830RAmNTAKCEQb0qzS3Wl949eJc6EQCIeulI+QCfRhfn feJ1a5SptEqMWw5kap67q3U=
=9dt3
-----END PGP SIGNATURE----- Received on Tue May 22 2007 - 08:21:04 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US