]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/demauro.rb
Initial implementation of proper caching based on last-modified and etag HTTP headers
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / demauro.rb
index 436a0bd362fea979fa3c0fad85ee63f55b64b588..9f5fc21862e646003ba4095abff9d12a1df8db51 100644 (file)
@@ -16,7 +16,7 @@ class DeMauroPlugin < Plugin
   def demauro(m, params)\r
     parola = params[:parola].downcase\r
     url = @wapurl + "index.php?lemma=#{URI.escape(parola)}"\r
-    xml = @bot.httputil.get(url)\r
+    xml = @bot.httputil.get_cached(url)\r
     if xml.nil?\r
       info = @bot.httputil.last_response\r
       info = info ? "(#{info.code} - #{info.message})" : ""\r