clean cachew
This commit is contained in:
@@ -63,6 +63,7 @@ class WrenchAuth extends BaseController
|
|||||||
$endpoint = "USER_SESSION-". str_pad($out["member_id"], 12, "0", STR_PAD_LEFT) ."-";
|
$endpoint = "USER_SESSION-". str_pad($out["member_id"], 12, "0", STR_PAD_LEFT) ."-";
|
||||||
log_message('critical', "***** ***** WrenchAuth::userLogin USER_SESSION = ".$endpoint );
|
log_message('critical', "***** ***** WrenchAuth::userLogin USER_SESSION = ".$endpoint );
|
||||||
$this->saveCache($endpoint,$out,15000);
|
$this->saveCache($endpoint,$out,15000);
|
||||||
|
$this->neatCache($out);
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
log_message('critical', "***** ***** WrenchAuth::userLogin USER_SESSION = ".$fail_endpoint );
|
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);
|
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(){
|
public function qrLogin(){
|
||||||
|
|
||||||
$raw_json = file_get_contents('php://input');
|
$raw_json = file_get_contents('php://input');
|
||||||
|
|||||||
Reference in New Issue
Block a user