Fix don't-cache check