Commit dc293115 authored by rohnjeynolds's avatar rohnjeynolds Committed by pifagor

Issue #2851552 by rohnjeynolds, pifagor, badrange, unknownguy: On rebuild,...

Issue #2851552 by rohnjeynolds, pifagor, badrange, unknownguy: On rebuild, xmlsitemap_node fills node static cache, exhausts memory
parent 2a0c73dc
......@@ -42,7 +42,7 @@ function xmlsitemap_node_xmlsitemap_index_links($limit) {
* An array of node IDs.
*/
function xmlsitemap_node_xmlsitemap_process_node_links(array $nids) {
$nodes = node_load_multiple($nids);
$nodes = node_load_multiple($nids, array(), TRUE);
foreach ($nodes as $node) {
$link = xmlsitemap_node_create_link($node);
xmlsitemap_link_save($link, array($link['type'] => $node));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment