diff --git a/www-api/app/Controllers/WrenchUserContacts.php b/www-api/app/Controllers/WrenchUserContacts.php index a2bfa127..7e145df3 100644 --- a/www-api/app/Controllers/WrenchUserContacts.php +++ b/www-api/app/Controllers/WrenchUserContacts.php @@ -41,7 +41,7 @@ class WrenchUserContacts extends BaseController $endpoint = "CONTACTS_IMPORT_ACTION-". $member_uid; $outC = $this->getCache($endpoint); // try find in cache - if (isset($outC) && is_array($outC)){ + if (isset($outC) && is_array($outC) && isset($outC['raw_contacts'])){ log_message('critical', "************* WrenchUserContacts REFRESH 0002 ".serialize($in)); $outC["raw_contacts_". $in["mmode"]] = $in["raw_contacts"]; // extra store raw $this->deleteCache($endpoint); @@ -49,7 +49,7 @@ class WrenchUserContacts extends BaseController } else { - // $this->deleteCache($endpoint); + $this->deleteCache($endpoint); log_message('critical', "************* WrenchUserContacts CREATE 0001 ".serialize($in)); $outC["raw_contacts_". $in["mmode"]] = $in["raw_contacts"]; // extra store raw $this->saveCache($endpoint,$outC,5300);