[support] Update CCK Node via Code

Yves Chedemois yched.drupal at free.fr
Fri Sep 7 00:18:37 UTC 2007


Fred Jones a écrit :
> 	cache_clear_all();
>
> 	cache_clear_all(NULL, 'cache_content');
>
> 	cache_clear_all(NULL, 'cache');
>
> and
>
> 	cache_clear_all(NULL, 'cache_views');
>
> but /node/18 remains the same--no update visible. :(
>
> I don't think cache_filter nor cache_menu tables will do the trick either.
>
> Any other ideas? It's Drupal 5.2.
>
> Thanks.
>   
> Great idea. But it doesn't seem to work. I tried now:
Definitely a question of the old value still being fetched from the 
cache_content table
You want to call cache_clear_all('content:'. $node->nid, 
'cache_content', TRUE) after modifying the db value.


More information about the support mailing list