Issue #3497467 by vasyapledov: Take gid from the route instead of Group for cache context 'route.group'