Changeset 271

Show
Ignore:
Timestamp:
09/22/06 18:43:41 (2 years ago)
Author:
miya
Message:

CustomFeed::Kotonoha: memoize get_icon().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plagger/trunk/lib/Plagger/Plugin/CustomFeed/KotonohaInbox.pm

    r140 r271  
    55use Encode; 
    66use WWW::Mechanize; 
     7use Memoize; 
     8 
     9memoize('get_icon'); 
    710 
    811sub plugin_id { 
     
    109112    my ($self, $mech, $user) = @_; 
    110113 
     114    Plagger->context->log('info', "Getting an icon of $user"); 
    111115    $mech->get("http://kotonoha.cc/user/$user"); 
    112116    my $content = decode('utf-8', $mech->content);