Add documentation for cache. Make cache policy local variable. Add network status change block with cache policy return method.