Having 2 issues while saving request
node_save() function was making slower to save the details since lot of data hit at simultaneously.so saving node using field_attach_presave()
and field_attach_update()
. Sometimes the code doesn’t update the database properly.
below are the code which using for save :
field_attach_presave(‘node’, $node);
field_attach_update(‘node’, $node);
I reset the static cache to avoid issues with entity_get_controller('node')->resetCache(array($node->nid));
.
Even after the data is updated properly in database, the cache isn’t cleared.
How do I solve these two issues?