[FEATURE] Speed up typoLink function by caching domain records

Cache the domain records in a runtime cache for improved rendering
of links generated with typolink function.

This change takes only effect, when
  config.typolinkCheckRootline = 1
is set, which otherwise costs immense performance in terms of huge
number of SQL queries.

Resolves: #24389
Releases: 6.1
Change-Id: I7c6bee1cd6ee1cb0901d926dd6ce9a22c00501ab
Reviewed-on: https://review.typo3.org/9023
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
Reviewed-by: Simon Schaufelberger
Tested-by: Simon Schaufelberger