• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Do DA's add a page to the app's cache ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do DA's add a page to the app's cache ?


  • Subject: Re: Do DA's add a page to the app's cache ?
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 4 Sep 2008 19:05:33 -0700


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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Do DA's add a page to the app's cache ? (From: Owen McKerrow <email@hidden>)
 >Re: Do DA's add a page to the app's cache ? (From: Chuck Hill <email@hidden>)
 >Re: Do DA's add a page to the app's cache ? (From: Owen McKerrow <email@hidden>)

  • Prev by Date: Re: Inherited Relationships using Different Destinations
  • Next by Date: Re: new Session being created
  • Previous by thread: Re: Do DA's add a page to the app's cache ?
  • Next by thread: Re: History on WO query: Is there a special name for the design pattern describes EO itself?
  • Index(es):
    • Date
    • Thread