Skip to content
Snippets Groups Projects
Commit cc7b4ad5 authored by Thomas Hohn's avatar Thomas Hohn Committed by Christian Kuhn
Browse files

[BUGFIX] Only perform reindex if data has indeed changed

Change-Id: I889264f34599be556e16b3d37825a3761b681e70
Resolves: #79068
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/51018


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarThomas Hohn <thomas@hohn.dk>
Tested-by: default avatarThomas Hohn <thomas@hohn.dk>
Reviewed-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 9378ce8b
Branches
Tags
No related merge requests found
......@@ -136,17 +136,21 @@ class PlainDataResolver
return $this->resolvedIds;
}
$ids = $this->reindex(
$this->processVersionOverlays($this->liveIds)
);
$ids = $this->reindex(
$this->processSorting($ids)
);
$ids = $this->reindex(
$this->applyLiveIds($ids)
);
$this->resolvedIds = $this->processVersionOverlays($this->liveIds);
if ($this->resolvedIds !== $this->liveIds) {
$this->resolvedIds = $this->reindex($this->resolvedIds);
}
$tempIds = $this->processSorting($this->resolvedIds);
if ($tempIds !== $this->resolvedIds) {
$this->resolvedIds = $this->reindex($tempIds);
}
$tempIds = $this->applyLiveIds($this->resolvedIds);
if ($tempIds !== $this->resolvedIds) {
$this->resolvedIds = $this->reindex($tempIds);
}
$this->resolvedIds = $ids;
return $this->resolvedIds;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment