Hi!

I try to figure out how to enable caching for JSON calls. I used the
example and the jquery documentation but I have no idea where to put
the "cache: true".

http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback

<code>
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?
tags=cat&tagmode=any&format=json&jsoncallback=?",
        function(data){
          $.each(data.items, function(i,item){
            $("<img/>").attr("src", item.media.m).appendTo("#images");
            if ( i == 3 ) return false;
          });
});

</code>

Reply via email to