Skip to Content
author's profile photo Former Member
Former Member

ICachablePortalComponent:hasExpired

Hello,

can anybody explain what's the purpose of following method: ICachablePortalComponent:hasExpired

My understandig was, that, whenever someone calls an iview based on a portal component, which implements above method, this method will be checked in a caching environment.

So I decided to set the according parameter "ValidityPeriod" i.e. for 1 day, such that i achieve a 1 day caching of each iview.

What happened was:

The method was not checked everytime such an iview is called, but only after redeploying the implementation of the component. Then ICachablePortalComponent:hasExpired is called until it returs true for the first time. After this successful call it wasn't checked any longer, unless the code was redeployed again.

regards

Ruth

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2004 at 02:38 PM

    Hi ruth,

    What is the purpose of using ICachable Interface .Can u pls explain in detail.

    Regds,

    Anto

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2004 at 05:32 PM

    Hi,

    When you extend the ICachable Interface, you allow your component to use the caching opportunity given by the Portal. Each cached component (PortalComponent, iView, Pages or PortalApplication) depends of a validity period. This feature helps you to avoid multiple calls to the subsystem in several cases. For example, if an user has to access personal data integrated into many pages, it can be interesting to use an USER caching behaviour. You can also use SHARE or SESSION levels.

    The content will stay in cache until the regeneration (because it has been invliadated) and this why, if you want to control cache with source code, i.e to know if the cache is still valid, you can implement the hasExpired Method().

    Regards, Ludovic

    Message was edited by: Ludovic Fernandez

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.