contacts data
This commit is contained in:
@@ -68,7 +68,7 @@ Dear <b>{{firstname}}</b>,
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bodycopy" style="padding-bottom:10px;">
|
||||
<span style="color:darkgreen; font-weight:bolder;">{{send_firstname}} {{send_lastname}} </span> invites you to explore <a href="{{server_name}}/invite?refer_link={{refer_link}}">{{site_name}}!</a>. Unlock the power of your skills and social networks—start earning today!"
|
||||
<span style="color:darkgreen; font-weight:bolder;">{{send_firstname}} {{send_lastname}} </span> invites you to explore <a href="{{server_name}}/invite?refer_link={{refer_link}}">{{site_name}}!</a>. Unlock the power of your skills and social networks. Start earning today!
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -36,37 +36,44 @@ class WrenchUserContacts extends BaseController
|
||||
if (isset($in["uid"]) && $in["uid"] !='' ){
|
||||
$in["member_uid"]=$in["uid"];
|
||||
}
|
||||
$member_uid = str_replace("-", "_", $in["uid"]);
|
||||
$time_to_save = false;
|
||||
$endpoint = "CONTACTS_IMPORT_ACTION-". $in["uid"];
|
||||
$endpoint = "CONTACTS_IMPORT_ACTION-". $member_uid;
|
||||
|
||||
$outC = $this->getCache($endpoint); // try find in cache
|
||||
if ( $in["mmode"] == 0 ){
|
||||
$this->deleteCache($endpoint);
|
||||
$this->saveCache($endpoint,$in,1300);
|
||||
$this->saveCache($endpoint,$in,5300);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$outC = $this->getCache($endpoint); // try find in cache
|
||||
$outArr = $outC; // unserialize( $outC );
|
||||
log_message('critical', "CACHE READ ***** WrenchUserContacts::usersContacts() ----**> ".$outArr["raw_contacts"]);
|
||||
$in["raw_contacts"] = $in["raw_contacts"].$outC["raw_contacts"];
|
||||
$in["raw_contacts"] =$outC["raw_contacts"].$in["raw_contacts"]; // expand raw contents
|
||||
// log_message('critical', "Merged Raw Contents ".$outArr["raw_contacts"]);
|
||||
$this->deleteCache($endpoint);
|
||||
$this->saveCache($endpoint,$in,5300);
|
||||
|
||||
/*
|
||||
Determine if this is the last
|
||||
Fire process events
|
||||
save to the backend database;
|
||||
*/
|
||||
if ($in["csize"] + $in["mmode"] >= $in["pcount"]){
|
||||
$time_to_save = true;
|
||||
}
|
||||
// if ($in["csize"] + $in["mmode"] >= $in["pcount"]){
|
||||
// $time_to_save = true;
|
||||
// }
|
||||
}
|
||||
|
||||
if ($in["csize"] + $in["mmode"] >= $in["pcount"]){
|
||||
$time_to_save = true;
|
||||
}
|
||||
///=== cache game gere
|
||||
|
||||
if($time_to_save){
|
||||
$in["raw_contacts"] = serialize($in['raw_contacts']);
|
||||
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||
$out['internal_return'] = $ret;
|
||||
// $ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||
// $out['internal_return'] = $ret;
|
||||
}
|
||||
else{
|
||||
$out["status_msg"] = "Received and cached";
|
||||
|
||||
Reference in New Issue
Block a user