5 Replies Latest reply on Jan 3, 2013 11:53 AM by Jörg Hoh

    Cache JSON response

    Adnan_N

      Hi,

       

      I used following blog to Ajaxify a component

       

      http://blogs.adobe.com/mtg/2011/11/building-components-in-adobe-cq5-part-2-a-tutorial-on-j query-ajax-and-sling.html

       

      Basically this talks about creating a JSP file in conponent with name [ComponentName].json.POST.jsp to allow running custom code to return JSON.

       

      My component is doing JCR search based a parameters and returning a JSON list (which could be different for different parameters)

       

      So all went well till I discover performance issues with AJAX response time.

       

      Is there a way in CQ5 to cache result of JSON and have it auto every x mins?

       

      Thanks in adavnce.