refatored doctor cache
added rack cache