missing cache function
This commit is contained in:
@@ -253,4 +253,25 @@ abstract class BaseController extends Controller
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function doCacheStep($in, $out){
|
||||
|
||||
switch ($in["action"]) {
|
||||
case WRENCHBOARD_ACCOUNT_LOGIN:
|
||||
case WRENCHBOARD_ACCOUNT_AUXLOGIN:
|
||||
if (isset($out["uid"]) && $out["uid"]!=''){
|
||||
$endpoint = "SESSION-".$out["uid"];
|
||||
$this->saveCache($endpoint,$out);
|
||||
}
|
||||
break;
|
||||
}
|
||||
// $endpoint = "WRENCH_BLOG_DATA";
|
||||
// $res1 = $this->getCache($endpoint);
|
||||
// if (count($res1)==0){
|
||||
// $rawData = $this->apiData();
|
||||
// $res1= $rawData['payload']; //[0]['payload'];
|
||||
// $this->saveCache($endpoint,$res1);
|
||||
// }
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user