Jump to:
| Project: | Content Profile |
| Version: | 6.x-1.0 |
| Component: | Base module |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hello,
We are using a node reference field in the profile content type, which suppose to store the member card. I when I'm trying to grammatically change the card using node_save(), it didn't work. I was wondering whether my changes are overwritten by some other module. I tried several methods depending on various assumptions.
Now I've created a module with higher priority (weight = 10,000). In the hook_exit of that module I'm changing the field value using SQL. Changes are successfully saved in the database. I'm trying to clear the cache in the following way:
//clear profile node cache
db_query('DELETE FROM {cache_content} WHERE cid LIKE \'content:'.$profile_nid.':%\'');
db_query('DELETE FROM {tr_cache_content} WHERE cid LIKE \'content:'.$profile_nid.':%\'');
//2nd method
$profile_node = node_load($profile_nid);
content_profile_load('profile', $profile_node->uid, '', true); //3rd param reset itBut the value is still cached. It is removed when we clear the whole drupal cache only (manually through drupal UI).
Your effort is much appreciated,
Thank you.
Comments
#1
I´ve got the same problem but I cant find the solution.