cache read
This commit is contained in:
@@ -30,7 +30,7 @@ class WrenchUserContacts extends BaseController
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
$out =[];
|
||||
log_message('critical', "*********** WrenchUserContacts::usersContacts() 0001 ".serialize($in));
|
||||
// log_message('critical', "*********** WrenchUserContacts::usersContacts() 0001 ".serialize($in));
|
||||
$in["action"] = WRENCHBOARD_ACCOUNT_CONTACTIMPORT;
|
||||
|
||||
if (isset($in["uid"]) && $in["uid"] !='' ){
|
||||
@@ -46,9 +46,10 @@ class WrenchUserContacts extends BaseController
|
||||
else
|
||||
{
|
||||
$outC = $this->getCache($endpoint); // try find in cache
|
||||
log_message('critical', "CACHE READ ***** WrenchUserContacts::usersContacts() ----**> ".$outC["raw_contacts"]);
|
||||
$in["raw_contacts"] = $in["raw_contacts"].$outC["raw_contacts"];
|
||||
$this->deleteCache($endpoint);
|
||||
$this->saveCache($endpoint,$in,1300);
|
||||
$this->saveCache($endpoint,$in,5300);
|
||||
/*
|
||||
Determine if this is the last
|
||||
Fire process events
|
||||
|
||||
Reference in New Issue
Block a user