If the cable jamming in the housing because things are worn, dirty and/or frayed, I'd replace both it and the housing. Worn and dirty cables and housings are a primary cause of shifting problems.
We live on an island of knowledge surrounded by a sea of ignorance. As our island of knowledge grows so does the shore of our ignorance.
Or: The more you know, the more you know you don't know.