Skip to main content
1 of 3
Tyler
  • 165
  • 1
  • 2
  • 12

drupal function to clear cache on a single node

So in my module I can call

drupal_flush_all_caches()

I know for sure that will clear the cache of my nodes. But is there a way to clear cache on just a single node? What I need to do set up a module that when it selects a story on a list it changes a number that is kept on a field in that node. Right now I change the value of the number by calling an update on the mysql table containing that number. But you have to clear drupal's cache for it to update pages and views across the site.

Maybe's there's a better way to update a node then just changing the table directly?

Tyler
  • 165
  • 1
  • 2
  • 12