Needs review
Project:
Revisioning
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2014 at 07:37 UTC
Updated:
10 Mar 2016 at 18:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jantoine commentedThe attached patch reloads the node directly after updating the database.
Comment #2
rdeboerThanks for the patch Jon.
Makes sense.
Rik
Comment #3
vtkachenko commentedCall of next code will lead to clearing All node cache.
node_load($node_revision->nid, NULL, TRUE);https://api.drupal.org/api/drupal/includes!common.inc/function/entity_lo...
SEE:
$reset: Whether to reset the internal cache for the requested entity type.
So, it will clear cache not for specified entity but for all entities of this type.
Comment #4
Leeteq commentedComment #5
damienmckennaUsing the $reset option on nodes doesn't make a huge deal with core, but when you use the EntityCache module it clears the cache for every entity of that type, i.e. it'll clear the entire node cache.
Comment #6
damienmckennaWould this work? It might also help to add some tests to confirm it doesn't break anything.
Comment #7
damienmckennaComment #9
damienmckennaThe patch failed testing because there are no tests, see #2645590: Ensure that simpletest job doesn't "fail" testing if no tests are present for details.