Changeset 124:7f0429989f5f

Show
Ignore:
Timestamp:
06/19/07 17:24:02 (15 months ago)
Author:
Tarek Ziad?? <tarek@…>
Message:

returning cachers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cachers/cached_url.py

    r123 r124  
    2727            latest_infos = _get_metadata(url) 
    2828            if latest_infos.values() == infos.values(): 
    29                 return cached 
     29                return infos, cached 
    3030        else: 
    31             return cached 
     31            return infos, cached 
    3232    cached = _get_content(url) 
    3333    infos = _get_metadata(url) 
    3434    mc.set(url, (infos, cached)) 
    35     return cached 
    36  
    37 get_content('http://ec1.images-amazon.com/images/I/51N8DTWP7ZL._AA240_.jpg') 
     35    return infos, cached 
    3836 
    3937 
     38