Project

General

Profile

Actions

Feature #24888

closed

Add a cache for typoLink()

Added by Vladimir Podkovanov almost 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-01-29
Due date:
% Done:

0%

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

Description

Sometimes a page has many same links, for example list view for a product could has links from a preview image, from a title and a teaser description, all links going to detailed view of a product and all links has the same typoscript config.

In such cases typoLink() function can benefit from inner cache – if typolink config has same md5 from serialized config, then url and tag params is not being calculated again (it is rather big function) but retrieved from cache.

Content being placed inside A tag of course not cached, only tag.

Such cache is essential when TS-templates are heavy used - if php code in plugin is involved only in data preparing and all rendering being done in template then we have to call typolink many times with same config or to use ugly workaround "caching" with help of LOAD_REGISTER

(issue imported from #M17401)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #24389: speed up typoLink function by caching domain recordsClosedSteffen Gebert2010-12-22

Actions
Is duplicate of TYPO3 Core - Bug #17421: tslib_cObj::typoLink() is slow / patch to add cachingClosed2007-06-27

Actions
Actions

Also available in: Atom PDF