Hello,

I have an interesting issue. I have some external php scripts that query and update my drupal database. For example, one script updates/changes a user reference field. The problem is that when the content containing the user reference field is subsequently viewed via drupal, the user remains the same as when it was last saved via drupal (as opposed to my script) even though the user id has been changed in the relevant table in the database. I don't think this is a cache issue (I have caching turned off anyway). Any help would be greatly appreciated.

Regards.

Comments

markus_petrux’s picture

Status: Active » Fixed

After alterations of CCK Fields using direct database queries (UPDATE, INSERT, DELETE, ...) that bypass the normal node flow, try clearing the content cache entry:

  cache_clear_all('content:'. $node->nid .':', content_cache_tablename(), TRUE);

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.