clean cachew

This commit is contained in:
CHIEFSOFT\ameye
2024-10-02 06:55:17 -04:00
parent 56f4dc8439
commit d353451c79
+9
View File
@@ -63,6 +63,7 @@ class WrenchAuth extends BaseController
$endpoint = "USER_SESSION-". str_pad($out["member_id"], 12, "0", STR_PAD_LEFT) ."-";
log_message('critical', "***** ***** WrenchAuth::userLogin USER_SESSION = ".$endpoint );
$this->saveCache($endpoint,$out,15000);
$this->neatCache($out);
}else
{
log_message('critical', "***** ***** WrenchAuth::userLogin USER_SESSION = ".$fail_endpoint );
@@ -72,6 +73,14 @@ class WrenchAuth extends BaseController
return $this->respond( $this->summaryReturnData($in,$out), 200);
}
public function neatCache($in): int{
// clean up user cache at start
$endpoint = "ACCOUNT_HOMEBANNERS-".str_replace("-", "_", $in["uid"]);
$this->deleteCache($endpoint);
return 0;
}
public function qrLogin(){
$raw_json = file_get_contents('php://input');