How do I correctly cache a themed menu output?
Okay, so this combination worked...

$variables['#cache']['tags'] = ['node:' . $node-&gt;id()];
$variables['#cache']['contexts'] = ['route', 'theme'];
$variables['#cache']['keys'] = ['entity_view', 'node', $node-&gt;id()];


I dont see a huge difference to my first attempt but whatever!