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?

2
  • Are you updating the node via code or the ui?
    – WestieUK
    Commented Feb 28, 2012 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
    Commented Feb 28, 2012 at 8:24

2 Answers 2

3

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

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(); ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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