> if (typeof input != None) putInCache(input)
Exactly, now you've just written exactly the bug I was talking about.