Fixed #7460 -- Made the "cache" template tag always generate keys that can be