There is no issue with collecting new feature ideas for a product in the product backlog, even if those ideas will not be implemented within the next five years. Not every idea for a feature is worth the effort to be implemented now, still it might be worth to collect the ideas for keeping up a strategic development plan and evaluate older ideas from time to time.
However, the situation that some of the feature ideas are demanded by a lot of users or stakeholders regularly, maybe in different variations, can be more easily detected by bookkeeping those ideas in the backlog. We can add a remark to the item, telling who has already asked for the feature, when, and - not to forget - for what purpose(!). This can be an indicator for giving this backlog item a higher priority and pull it into one of the next sprints.
When some of the tasks really "become outdated", as you wrote, in the sense that they became obsolete, one can consider to delete them (and not to give them an even higher priority, obviously). Maybe the code base has evolved up to a point where the task makes no sense any more, maybe the feature is covered by some other features which are already implemented, maybe the feature idea itself has become obsolete because the use case does has lost importance for the users or can be solved differently by some 3rd party software. If the product owners detect such items, they should either remove, archive, or rewrite them.
Let me disclose that I am not talking about theory. What I wrote above is part of my daily work. One of the product backlogs I maintain is more than twenty years old (we actually never called it "product backlog", the approach of keeping such log items is quite independent from Scrum and applies to almost any long-term product development, regardless of the methodology). This backlog contains more than 200 open feature ideas which might be implemented at some day in the future. Still we would never priorize them "by age", that would definitely make no sense.