clean up arr add

This commit is contained in:
CHIEFSOFT\ameye
2024-09-13 06:44:26 -04:00
parent 4d898ffedf
commit 0b78ff8667
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ abstract class BaseController extends Controller
//serialize
}
$foo = cache()->get($cacheKey);
log_message('critical', "FROM Cache -> ".$foo );
//log_message('critical', "FROM Cache -> ".$foo );
}
@@ -46,7 +46,8 @@ class WrenchUserContacts extends BaseController
else
{
$outC = $this->getCache($endpoint); // try find in cache
log_message('critical', "CACHE READ ***** WrenchUserContacts::usersContacts() ----**> ".$outC["raw_contacts"]);
$outArr = unserialize( $outC );
log_message('critical', "CACHE READ ***** WrenchUserContacts::usersContacts() ----**> ".$outArr["raw_contacts"]);
$in["raw_contacts"] = $in["raw_contacts"].$outC["raw_contacts"];
$this->deleteCache($endpoint);
$this->saveCache($endpoint,$in,5300);