Fixes for stats
New config variables for cache timeouts