Hy. I have a gadget with 250000 page views. I need to use cache. I saw
the function but i don't know how to applay it to my gadget. Here is
the gadget:
http://www.google.com/ig/directory?url=hosting.gmodules.com%2Fig%2Fgadgets%2Ffile%2F105475903341935514333%2Fbancuri.xml
or here is the code:

  <?xml version="1.0" encoding="UTF-8" ?>
  <Module>
  <ModulePrefs title="Yeti.ro - Bancuri, Glume, Culmi, Poze amuzante"
description="Bancuri, Glume, Culmi, Poze amuzante, Poze haioase"
author="Trifan Ion" author_email="[email protected]"
author_location="Constanta, Romania" author_affiliation="www.yeti.ro"
title_url="http://www.yeti.ro"; screenshot="http://www.yeti.ro/google/
preview.jpg" thumbnail="http://www.yeti.ro/google/thumb.jpg";
author_link="http://www.yeti.ro"; category="news" render_inline="never"
width="400" height="400" scaling="false" scrolling="true" />
  <Content type="url" href="http://igoogle.yeti.ro/bancuri/
bancuri_aleatorii.php" />
  </Module>


and this are the functions:

function makeCachedRequest(url, callback, params, refreshInterval)
{   var ts = new Date().getTime();   var sep = "?";   if
(refreshInterval && refreshInterval > 0) {     ts = Math.floor(ts /
(refreshInterval * 1000));   }   if (url.indexOf("?") > -1) {     sep
= "&";   }   url = [ url, sep, "nocache=", ts ].join("");
gadgets.io.makeRequest(url, callback, params); }


and

function makeNormalRequest() {     var params = {};
params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.TEXT;   var url = "http://
graargh.returnstrue.com/buh/makerequest.php";
gadgets.io.makeRequest(url, response, params); };  function
response(obj) {   //obj.text contains the text of the page that was
requested   output(obj.text); };  makeNormalRequest();


Can you show me how? Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en.

Reply via email to