[support] Update CCK Node via Code

Fred Jones fredthejonester at gmail.com
Thu Sep 6 18:10:50 UTC 2007


Joakim Stai wrote:
> It could be something as simple as the cache not being cleared. If  
> you alter the database, you need to clear the cache for the correct  
> value to be displayed.
> 
> http://api.drupal.org/?q=api/function/cache_clear_all/5

Great idea. But it doesn't seem to work. I tried now:

	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.


More information about the support mailing list