1 2 Previous Next 16 Replies Latest reply on Feb 16, 2007 11:59 AM by Thomas Heute

    programmatically disabling caching

    Jerry Lacy Newbie

      Hello,

      Has anybody experienced any problems trying to programmatically disable caching? We have a set of portlets that are configured to normally perform caching. However, for a certain class of user we need to disable caching. I have tried the following without any luck:

      public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException, UnavailableException
      {
      
       response.setProperty( RenderResponse.EXPIRATION_CACHE, "0" );
       ?
       }


      The statement seems to have no effect on the portlet behavior.

      (using v2.4 final (source download bundle), JBoss AS 4.0.4GA, JDK1.5.0, Windows XP)

      Thanks in advance,

      Jerry


        1 2 Previous Next