[BUGFIX] Avoid duplicate calls to update reference index 74/50774/4
authorClaus Due <claus@namelesscoder.net>
Mon, 21 Nov 2016 15:52:03 +0000 (16:52 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 3 Dec 2016 09:14:29 +0000 (10:14 +0100)
commit6f8346b7d3548d3e8c6e1d12a77691fd79549c0a
tree2008e07d8f08372038ff6800fe8884879e2f9a91
parent0558c7daaa16b999c9b6fc4711814c8cfa332a5b
[BUGFIX] Avoid duplicate calls to update reference index

This patch adds a check when processing the update
reference index stack, in order to avoid calling the
update function more than once with the same input
arguments (which are $table and $uid).

Saves around 100 SQL queries when doing a standard
copy of 25 (nested) pages with 25 content elements.

Change-Id: If162218d4eabb749a92270e18c7c39108fd15f34
Resolves: #78761
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/50774
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/DataHandling/DataHandler.php