On Sep 4, 2008, at 6:34 PM, Owen McKerrow wrote:

Hi Chuck,

On 05/09/2008, at 10:39 AM, Chuck Hill wrote:

protected void savePageInPageCache(WOComponent aPage)
{
   if (aPage.context().request().requestHandlerKey().equals("wa") {
      super.savePageInPageCache(aPage);
   }
}


I can see a savePage(WOComponent aPage) and a savePageInPermanentCache(WOComponent aPageComponent) in session, but no savePageInPageCache(WOComponent aPage). Im assuming you mean savePageInPermanentCache ?

No, savePage.  I grabbed the 5.4 API by mistake.


If so how does it work ? That is from the doco "The permanent page cache is designed to hold components which are frequently accessed." is there only one "copy" of the component within the cache no matter how many times its called ? Otherwise I would have thought you would have run into the same problem i.e. the other part of doco says "Objects can fall out of the permanent page cache if the permanent page cache's size is exceeded."

I don't use that.


Or is it just a matter of the DA's being cached in the permantCache while the other pages are going into the normal cache so they frequent AJAX calls to the DA don't effect the cache's of the rest of the pages ?


Just a matter of me being in a hurry, clicking the wrong link and pasting the wrong method. :-)


Chuck


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to