-
-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
Description
The problem lays in flush() function.
When a sitemap is truncated by size here:
Line 232 in a7ba091
| if ($this->byteCount + $dataSize + $footSize > $this->maxBytes) { |
finishFile() functions is called which leads to zeroing urlsCount variable, but right after that a remaining chunk is appended to a file here (with contains up to $bufferSize URLs):
Line 240 in a7ba091
| $this->writerBackend->append($data); |
Those URLs in that chunk aren't counted anywhere and a next sitemap overflows.
Reactions are currently unavailable