set proper cache timeouts