Index: content_profile.module =================================================================== --- content_profile.module (revision 2411) +++ content_profile.module (working copy) @@ -473,11 +473,13 @@ * The profile owner's user id * @param $lang * Optional. If translation is enabled, the language of the profile to return. + * * @param $reset + * Optional. If set, the cache is reset */ -function content_profile_load($type, $uid, $lang = '') { +function content_profile_load($type, $uid, $lang = '', $reset = FALSE) { static $cache = array(); - if (!isset($cache[$type][$uid][$lang])) { + if (!isset($cache[$type][$uid][$lang]) || $reset) { $cache[$type][$uid][$lang] = FALSE; $params = array('type' => $type, 'uid' => $uid); if ($node = node_load($lang ? $params + array('language' => $lang) : $params)) {