Skip to content

Commit 2d33bd2

Browse files
committed
1 parent 7044cd7 commit 2d33bd2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,15 @@ public function execute()
161161

162162
// check whether we should rebuild it
163163
if ((!isset($this->parameters['forceRebuild']) || !$this->parameters['forceRebuild']) && !$this->workerData['finished']) {
164-
$this->checkCache();
164+
// This condition is only true when rebuilding the sitemap through the
165+
// button on the sitemap list. This causes the result to be inconsistent
166+
// when using the rebuild data workflow, which does not set this parameter
167+
// and thus causes the files to be not rebuild.
168+
//
169+
// It is unclear what the intention of this extra parameter is because
170+
// there is no use case where a rebuild worker should not cause a full
171+
// rebuild.
172+
//$this->checkCache();
165173
}
166174

167175
if ($this->workerData['finished']) {

0 commit comments

Comments
 (0)