* refid = inc/modules/guest/what-confirm.php need this
* locked = Shall I pay it to normal (false) or locked (true) points ammount?
*/
-function addPointsThroughReferalSystem ($subject, $userid, $points, $refid = '0') {
+function addPointsThroughReferalSystem ($subject, $userid, $points, $refid = NULL) {
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'subject=' . $subject . ',userid=' . $userid . ',points=' . $points . ',refid=' . $refid . ' - ENTERED!');
// By default nothing has been added
$added = false;
// The last step is to flush all userid's entries to the database
flushReferalTableToDatabase($userid);
+ // Rebuild cache
+ rebuildCache('refsystem', 'refsystem');
+
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ' - EXIT!');
}