• 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 17:39:53 -0700

On Sep 4, 2008, at 4:48 PM, Owen McKerrow wrote:

Hi All,

We have an app that has some small hand made AJAX on it (not the cool stuff from project wonder) and we're having an issue with page cacheing on the Applications side.

I had set the AJAX action up as a call to a DA which I had though did not add to/effect the sessions page cache. So either that assumption is wrong or I haven't made a clean break between the DA and the session after all.

All pages that get created go into the page cache.


Anyways heres the error we're getting...

"The application backtracking limit of 30 has been exceeded."

The stuff in Wonder is very cool...


Any suggestions ?

Does the result returned from the DA have any component actions in it? If not, you can disable all caching of pages returned by direct actions by adding this to Session:


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

If all pages returned by direct actions is a bit too broad, you will find some way (an interface, something in some object's userInfo, thread local storage) to indicate the pages you don't want to cache.

If the result returned from the DA does have component actions in it, then you have bigger problems.


Is turning off caching an option ?


I think you will find that it really is not.



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
  • Follow-Ups:
    • Re: Do DA's add a page to the app's cache ?
      • From: Owen McKerrow <email@hidden>
References: 
 >Do DA's add a page to the app's cache ? (From: Owen McKerrow <email@hidden>)

  • Prev by Date: Re: Do DA's add a page to the app's cache ?
  • Next by Date: Re: Do DA's add a page to the app's cache ?
  • Previous by thread: Re: Do DA's add a page to the app's cache ?
  • Next by thread: Re: Do DA's add a page to the app's cache ?
  • Index(es):
    • Date
    • Thread