Welcome to b1ju!

you can't teach cats to do anything. No, not a thing. You might think you can, but that is because you've misunderstood what's going on. You think it's the cat turning up obediently at the back door at ten o'clock for dinner. From the cat's point, a blob on legs has been trained to take a tin out of the fridge every night.