another thing i believe relevant is whether you store your gtr(s) in cases or leave them out in stands or hanging on the wall (more) exposed to humidity and dust build up.
there are so many variables to consider...climate, how often you gig, smokey or non smoking venues, personal DNA (acidity), are YOU a smoker, etc.
i'm lucky, i have DNA that doesn't tear thru gtr strings and tho i gig pretty often, i spread around which "date" i bring to the dance.
i use several different brands w a few caveats.... round wound strings on my electrics are ALWAYS pure nickel (warmer sounding and easier on frets. on bass i like FENDER.
i have several gtrs that i use flat wounds on. besides giving me the tone i need for old school straight ahead jazz....they have very long life.
about 5 yrs ago i bought an early 80's Precision Lyte from a student and it still has the same flatwounds on it (not sure of the brand) and they intonate perfectly and still sound great.
i have two old P basses, fretted and fretless....same flats on them for a good 15 yrs now!
if you're not so lucky re. your PH....you probably should be a little more persnickety about wiping down your strings.
yrs ago i got turned onto spraying WD 40 onto a terry cloth rag to wipe down strings. it works very well...but just be sure not to douse your p/u's w it! i've been doing that for a good 20 yrs w no problems.
i also recently started using Deoxit D5 contact cleaner (sprayed onto a terry cloth rag) on my strings....works wondeful and after a wipe down the strings feel new(er) and sound great...like they've been given CPR!