Take3 on last, a=chris
diff --git a/src/library/PartitionDocumentBundle.php b/src/library/PartitionDocumentBundle.php
index 7e3ed417b..ab52f79dc 100644
--- a/src/library/PartitionDocumentBundle.php
+++ b/src/library/PartitionDocumentBundle.php
@@ -343,7 +343,7 @@ class PartitionDocumentBundle
$index_file_name = $this->getPartitionIndex($partition);
if (!empty($this->index_cache[$partition]) && !$force_load) {
$index = $this->index_cache[$partition][0];
- $this->index_cache[$partition][1] = $this->index_cache['time'];
+ $this->index_cache[$partition][1] = time();
} else {
$this->index_cache ??= [];
if (count($this->index_cache) > $this->index_cache_size) {
@@ -353,7 +353,7 @@ class PartitionDocumentBundle
if (empty($cache_info[1])) {
unset($this->index_cache[$index_partition]);
} else if (!empty($cache_info[1]) &&
- $cache_info[1] < $oldest_time) {
+ $cache_info[1] <= $oldest_time) {
$oldest_time = $cache_info[1];
$oldest_partition = $index_partition;
}