Fix cells cache not being reset when sorting the index

This commit is contained in:
Fuzuki
2025-08-27 17:48:17 +02:00
parent 7850daa868
commit 5474bd7063
+6
View File
@@ -165,6 +165,9 @@ class Cells
if (!$this->indexSorted) {
asort($this->index);
$this->indexSorted = true;
// Clear unsorted cache
$this->indexKeysCache = null;
$this->indexValuesCache = null;
}
// Build or rebuild index keys cache
@@ -185,6 +188,9 @@ class Cells
if (!$this->indexSorted) {
asort($this->index);
$this->indexSorted = true;
// Clear unsorted cache
$this->indexKeysCache = null;
$this->indexValuesCache = null;
}
if ($this->indexValuesCache === null) {