diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-10-24 15:24:13 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-10-24 15:24:13 +0000 |
commit | 43ac960aa89e5a02291fe875627dac88ae7fda34 (patch) | |
tree | 6d0cb13f4c299978174d72730c602cd274bbfdba /data/rbot/plugins/quiz.rb | |
parent | 77512a98814b8c8ae5e6314a8bdf30b1967d95d2 (diff) |
Initial implementation of proper caching based on last-modified and etag HTTP headers
Diffstat (limited to 'data/rbot/plugins/quiz.rb')
-rw-r--r-- | data/rbot/plugins/quiz.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/quiz.rb b/data/rbot/plugins/quiz.rb index 4cd26f15..629b7232 100644 --- a/data/rbot/plugins/quiz.rb +++ b/data/rbot/plugins/quiz.rb @@ -116,7 +116,7 @@ class QuizPlugin < Plugin # Wiki data begin - serverdata = @bot.httputil.get( URI.parse( "http://amarok.kde.org/amarokwiki/index.php/Rbot_Quiz" ) ) + serverdata = @bot.httputil.get_cached( URI.parse( "http://amarok.kde.org/amarokwiki/index.php/Rbot_Quiz" ) ) serverdata = serverdata.split( "QUIZ DATA START\n" )[1] serverdata = serverdata.split( "\nQUIZ DATA END" )[0] serverdata = serverdata.gsub( / /, " " ).gsub( /&/, "&" ).gsub( /"/, "\"" ) |