Topic
  • 2 replies
  • Latest Post - ‏2012-11-28T09:37:24Z by TahaSaghir
TahaSaghir
TahaSaghir
7 Posts

Pinned topic Having caching issue after enabling session for anonymous page

‏2012-11-19T15:52:23Z |
With reference to my previous post:
https://www.ibm.com/developerworks/forums/thread.jspa?threadID=461783

The AJAX request issue is resolved after enabling the session for anonymous pages, but after doing so Portal seems to cache the portlet results - Actually the model in model container gets switched based on the query string parameter, example:

localhost:10039/wps/portal/anonymouspage?model=A
localhost:10039/wps/portal/anonymouspage?model=B
were returning different results, but after turning public.session=true the URL which I hit later on returns the same result as first one.
Updated on 2012-11-28T09:37:24Z at 2012-11-28T09:37:24Z by TahaSaghir
  • mburati
    mburati
    2560 Posts

    Re: Having caching issue after enabling session for anonymous page

    ‏2012-11-26T22:03:38Z  
    Before you enabled that, you were likely getting and populating a new session every request, so it was probably reinitializing the webapp each time. Afterwards, the model/webapp has already been regenerated and it's using what's there when you ask portal to re-render the page. How/where/when are you looking for a request parameter to the portal page to determine which model to contain? That does not seem like a typical use case (vs some action in the page changing the contained model).

    ..Mike Burati
    http://www-10.lotus.com/ldd/pfwiki.nsf/
    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.
  • TahaSaghir
    TahaSaghir
    7 Posts

    Re: Having caching issue after enabling session for anonymous page

    ‏2012-11-28T09:37:24Z  
    • mburati
    • ‏2012-11-26T22:03:38Z
    Before you enabled that, you were likely getting and populating a new session every request, so it was probably reinitializing the webapp each time. Afterwards, the model/webapp has already been regenerated and it's using what's there when you ask portal to re-render the page. How/where/when are you looking for a request parameter to the portal page to determine which model to contain? That does not seem like a typical use case (vs some action in the page changing the contained model).

    ..Mike Burati
    http://www-10.lotus.com/ldd/pfwiki.nsf/
    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.
    Thanks for the response mburati!

    Following this URL resolved my issue
    http://www-10.lotus.com/ldd/pfwiki.nsf/dx/Resetting_State_of_IBM_Web_Experience_Factory_portlets