dynamically set team detail cache length. fixes #574