Changeset 124:7f0429989f5f
- Timestamp:
- 06/19/07 17:24:02 (15 months ago)
- Author:
- Tarek Ziad?? <tarek@…>
- Message:
-
returning cachers
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r123
|
r124
|
|
| 27 | 27 | latest_infos = _get_metadata(url) |
| 28 | 28 | if latest_infos.values() == infos.values(): |
| 29 | | return cached |
| | 29 | return infos, cached |
| 30 | 30 | else: |
| 31 | | return cached |
| | 31 | return infos, cached |
| 32 | 32 | cached = _get_content(url) |
| 33 | 33 | infos = _get_metadata(url) |
| 34 | 34 | 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 |
| 38 | 36 | |
| 39 | 37 | |
| | 38 | |