Only execute if cache is enabled and cache_length is valid
Add documentation to config yaml