0

When I update a node programmatically the node is updated successfully, but it doesn't display updated content. It only display the previous content.

How can I make the node display the updated content?

  • Are you updating the node via code or the ui? – WestieUK Feb 28 '12 at 8:11
  • Since your title and tags indicate there is caching involved, perhaps you should tell us something about your actual cache setup? – Letharion Feb 28 '12 at 8:24
3

Assuming D6, You have to use the reset flag (third argument) in your node_load.

| improve this answer | |
0

You can clear cache with the help of below code

<?php include_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); drupal_flush_all_caches(); ?>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.