The cashier still gets paid mind you, if he can put up with it it's the company who is inconvenienced by the slower queue.
Occasionally your server deserves a bit of dickish behaviour because of their attitude, but this is relatively rather rare in my experience.
The cashier is a real human doing a job to put food on the table and has done nothing to deserve it, and may well have been far more hurt by the head office than you.