There is currently no check for the total number of links before the number of chunks the site map should be divided into has been decided. As a result, taxonomy and user links are repeated in every chunk.

Comments

darren oh’s picture

Also, the largest node ID will not give an accurate count of nodes if nodes have been deleted. To get an accurate link count, we need to

  1. Count the number of nodes.
  2. Count the number of taxonomy terms.
  3. Count the number of users.
  4. Count the number of returned links.

This will allow us to calculate the number of site maps to show on the index page.

For the individual site maps, we must find the beginning of the range. We start with the lowest nid for which links were returned and count links until the number of links plus the number of nodes equals the chunk size multiplied by the chunk number. The first chunk will start with the home page. After all nodes have been added, we start counting terms, then users, and finally links that do not have nids.

The next nid, tid, uid, or link is the beginning of the current range.

darren oh’s picture

Status: Active » Fixed

Fixed in CVS commit 64991.

darren oh’s picture

Version: 5.x-1.x-dev » 4.7.x-1.x-dev
Status: Fixed » Patch (to be ported)

Set issue 110484 to duplicate of this issue.

darren oh’s picture

Version: 4.7.x-1.x-dev » 4.7.x-1.0
dave reid’s picture

Status: Patch (to be ported) » Closed (fixed)

This module is no longer supported. Closing issue.