'Ensure that the cache entry image data is still valid.'

def _should_update_entry(self, cache_entry, image_meta):

    image_updated_utc = image_meta['updated_at'].astimezone(timezone('UTC'))
    cache_updated_utc = cache_entry['image_updated_at'].replace(tzinfo=timezone('UTC'))
    LOG.debug('Image-volume    cache    entry    image_update_at    =    %(entry_utc)s,    requested    image    updated_at    =    %(image_utc)s.', {'entry_utc': six.text_type(cache_updated_utc), 'image_utc': six.text_type(image_updated_utc)})
    return (image_updated_utc != cache_updated_utc)
