Project

General

Profile

Actions

Task #97525

closed

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

Added by Christoph Lehmann over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Performance
Target version:
-
Start date:
2022-05-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Sprint Focus:

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")
  • 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.

Actions

Also available in: Atom PDF