Skip to content
Snippets Groups Projects
Commit 493ed0f2 authored by Alex Barth's avatar Alex Barth
Browse files

#872772 andrewlevine: Fix buildNode() (and node_load()) called unnecessarily.

parent f7d26afa
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
Feeds 6.x 1.0 XXXXXXXXXXXXXXXXXX Feeds 6.x 1.0 XXXXXXXXXXXXXXXXXX
-------------------------------- --------------------------------
- #872772 andrewlevine: Fix buildNode() (and node_load()) called unnecessarily.
- #873240 thsutton: Use isset() to avoid notices. - #873240 thsutton: Use isset() to avoid notices.
- #878528 Sutharsan: Don't show file in UI if file does not exist. - #878528 Sutharsan: Don't show file in UI if file does not exist.
- #901798 alex_b: Fix time off in SitemapParser. - #901798 alex_b: Fix time off in SitemapParser.
......
...@@ -35,13 +35,13 @@ class FeedsNodeProcessor extends FeedsProcessor { ...@@ -35,13 +35,13 @@ class FeedsNodeProcessor extends FeedsProcessor {
// Create/update if item does not exist or update existing is enabled. // Create/update if item does not exist or update existing is enabled.
if (!($nid = $this->existingItemId($item, $source)) || ($this->config['update_existing'] != FEEDS_SKIP_EXISTING)) { if (!($nid = $this->existingItemId($item, $source)) || ($this->config['update_existing'] != FEEDS_SKIP_EXISTING)) {
$node = $this->buildNode($nid, $source->feed_nid);
// Only proceed if item has actually changed. // Only proceed if item has actually changed.
$hash = $this->hash($item); $hash = $this->hash($item);
if (!empty($nid) && $hash == $this->getHash($nid)) { if (!empty($nid) && $hash == $this->getHash($nid)) {
continue; continue;
} }
$node = $this->buildNode($nid, $source->feed_nid);
$node->feeds_node_item->hash = $hash; $node->feeds_node_item->hash = $hash;
// Map and save node. If errors occur don't stop but report them. // Map and save node. If errors occur don't stop but report them.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment