[TYPO3-english] CObject getTypoLink() is slow

Gorosito Gonzalo xgonzalo at gmail.com
Sun Jul 15 22:08:33 CEST 2012


Hi list!

How's your Sunday? Mine is @ work.

So, I'm trying to speedup a little my project and I found that in some
cases my pages take up to 2 seconds more when I use the function
getTypoLink() to resolve human-friendly links. I have realurl and
languagevisibility modules installed, so I use getTypoLink() because it
resolves everything, the href, the title after the languagevisibility
fallback logic.

Code sample:

$cObj = t3lib_div::makeInstance('tslib_cObj');
$cObj->start(array(),'');
$urlParameters = array('L' => 6);

return $cObj->getTypoLink("", $uid, $urlParameters);

After googleing it for quite a while.. I see some issues reported in forge
related to caching this feature but never addressed (following links), does
anybody know if typo3 is already caching this? I mean, it's VERY slow, if I
try to resolve 15 typolinks in one request it takes up to 1.5s.

Issue #1: tslib_cObj::typoLink() is slow / patch to add caching
http://forge.typo3.org/issues/17421
Issue #2: Add a cache for typoLink() http://forge.typo3.org/issues/24888

Thanks in advance
#######################################
#  Gonzalo Gorosito
#  Programador && sysadmin
#
#  http://www.tutorialesdebian.com - Tutoriales para debianeros, scripts,
info, notícias y mucho mas.
#  http://www.ggorosito.com.ar - Website personal
#######################################


More information about the TYPO3-english mailing list