My Marlin M60 went 38 years before it got a cleaning. By that time the buffer was smashed and it got a new striker spring.
For my Glocks, I'll take the slides off, and if they aren't dry, they go back together. I'll do a deep clean a couple times a year.