- if os.path.isfile(cached[0]) and \
- os.path.getsize(cached[0]) == size and \
- misc.extract_meta_time(cached[0]) == meta_time:
- self._update_cache_access_time(name, size, meta_time)
- return cached[0]
- else:
- self._remove_from_cache(name, size, meta_time)