[TYPO3-core] RFC #11358: Bug: typoLink() perfomance

Vladimir Podkovanov admin at sitesfactory.ru
Fri Jun 19 11:03:18 CEST 2009


Hi all,

This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=11358

Branches: TYPO3_4-1, TYPO3_4-2, trunk

1)
Problem:
typolink uses ->getPage_noCheck() to check out if page's id exists. 
->getPage_noCheck() do then DB request but result is not stored, so if 
some page contains 50 links to some other page (that is pretty common if 
the links goes to some plugin) then DB gets 50 same requests to check 
out if the id exists.

Solution:
to cache results inside $TSFE->sys_page in internal var 
cache_getPage_noCheck

2)
Problem:
typolink uses ->getPageIdFromAlias to get id from an alias. Same story 
here - result is not cached.

Solution:
to cache results inside $TSFE->sys_page in internal var 
cache_getPageIdFromAlias

-- 
-rgds-
Vladimir
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug11358.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090619/c6ab7f1e/attachment.txt 


More information about the TYPO3-team-core mailing list