Issue Task Closed

#97525Use runtime cache in PageRepository()->getPageOverlay()

Christoph Lehmann 05/01/22, 21:13 updated 02/08/23, 16:05

Description

The function is a good candidate for result caching like its done in PageRepository->getPage() for the default language in order to spend less time doing sql queries.

Two typical use cases:

1. Cache the current page

In multi-language environments a typical has

  • a language navigation
  • alternate links (<link rel="alternate" hreflang="xy" li>
  • a canonical link (<link rel="canonical" href="...">).

So the function is called 1 time for canonical 2 times for every language.

2. Detail pages

Have installed EXT:news and visit the list page (containing multiple news detail links). Every detail link calls PageRepository()->getPageOverlay() one time.

Reviews 1