I developed a questionnaire for myself and need to know how i can force the matchmaking cache to update for a specific user. My mod is writing new values into a profile field thats using the cupid match system, but to take effect the match-cache must be rebuild. Dolphin does this too when a member goes to his profile and changes some profile fields. after saving the profile this cache gets rebuild.
Is there a function i can call or what i have to do? I do not want to clear the whole cache for all users, so how is pedit.php doing it. Anybody know?
I found these two code pieces in pedit.php and wonder if one of them might trigger the cache to be rebuild. Which is the correct way to do so?
a) $this -> oPC -> updateProfile( $this -> iProfileID, $aUpd );
b) $oZ = new BxDolAlerts('profile', 'edit', $this -> iProfileID, 0, array('OldProfileInfo' => $aProfileInfo) );
$oZ->alert();