In my secondary school of around ~1000 people they solved this by simply assigning a rotating time in the lunch break at which year groups could get the food (i.e a 10 min slot at 12:45 one day, 1300 the next, etc - you could sit and eat as long as you liked). I'm surprised this is not a solved problem...