Check data before cache.
Check data before cache.