add cache_if and cache_unless on caching doc