From 8c7d63c25130adf845ea300b91ee858bde94661d Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 13 Sep 2024 06:32:55 -0400 Subject: [PATCH] cache read --- www-api/app/Controllers/WrenchUserContacts.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www-api/app/Controllers/WrenchUserContacts.php b/www-api/app/Controllers/WrenchUserContacts.php index 6b9e3dae..c6fed70c 100644 --- a/www-api/app/Controllers/WrenchUserContacts.php +++ b/www-api/app/Controllers/WrenchUserContacts.php @@ -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