views_atom_rules_action_add_nids_to_feed() passes a list of nids to a View as arguments. That View should be using the row plugin supplied by this module, views_plugin_row_rdf_node. The render() method of this class calls node_load().

If the node being load has also been updated in this page request it is possible that node_load() will used a cached version of the node that was generated before the node was saved.

I ran into this problem when frequently updating the same list of nodes. This list of nodes was then passed through views_atom_rules_action_add_nids_to_feed() to syndicate the nodes out to another site. The site receiving the syndication was always a revision behind.

To alleviate this problem I will clear the node_load() cache from within views_atom_rules_action_nids_to_feed() as well as in views_atom_rules_action_add_to_feed() which should be susceptible to the same problem. I think it would be overkill to always reset the node_load() cache from with in the Views plugin.

Comments

stevector’s picture

Status: Active » Needs review
StatusFileSize
new1.55 KB

Here's the patch.

stevector’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.