- decent lube
I find that good quality inners in PTFE lined outers work best for longest without lube. Once they start gunking up, a flush with lube can restore functionality for a while, but I wouldn't lube new cables.
the 'gunking up' can often be the liner abrading away; this will vary with the inner cable used and the loading. However I think this can be more likely to occur with a dry liner vs one with the right kind of lube in it.
However the wrong lube will cause the liner to soften, swell etc or for example the thickeners in some greases can cause the cable to immediately become draggy at low loads on long cable runs. By contrast a good lube won't do any of these things.
The prospect of water ingress into cables raises some interesting issues; I think that the right kind of lube helps deter water ingress and indeed most types of sealed ferrule don't work well (or last long) unless some kind of lubricant is used.
Long cable housing runs that (say) go via the BB (and therefore have a low spot in them) are particularly troublesome if the sealing is in any way suspect. If they are assembled dry, and then see any weather, they will just fill up with water and usually go bad in a relatively short period of time. (Some folk use a little Vaseline or grease at the top end of the cable so that the water won't get in so easily.)
Once the rot starts the conditions within such cables (i.e. assembled dry then contaminated with water) can become extremely corrosive, and the passivation on the surface of stainless steel can be lost; I have even seen stainless steel inner cables corrode wholesale (i.e. to the point that the cable will break or can be broken easily simply by flexing it) within such cable runs.
So it is lube every time for me!
cheers