Issue Task Closed

#80207Cleanup retrieval of hash-value and processing in ReferenceIndex

Andreas Allacher 03/09/17, 12:14 updated 10/02/18, 11:02

Description

In \TYPO3\CMS\Core\Database\ReferenceIndex the updateRefIndexTable method sets
@$currentRelations[$relation[‘hash’]] = $currentRelations;@ which not really makes sense.

https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/core/Classes/Database/ReferenceIndex.php#l224

Since the relation is not used – it would be sufficient to:
  1. Fetch the hash value
  2. Set $currentRelationHashes[$relation[‘hash’]] to true since we only use it to process the records aftwards

Reviews 2