$countItem
This commit is contained in:
@@ -53,7 +53,12 @@ class WrenchJobs extends BaseController
|
|||||||
$endpoint = "JOB_DATA-". $in["uid"];
|
$endpoint = "JOB_DATA-". $in["uid"];
|
||||||
|
|
||||||
$out = $this->getCache($endpoint);
|
$out = $this->getCache($endpoint);
|
||||||
if ( count($out)==0 ){
|
$countItem = 0;
|
||||||
|
if( is_array($out)){
|
||||||
|
$countItem = count($out);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $countItem == 0 ){
|
||||||
$local_url = "http://".$this->micro_service_net1.":3033/marketjobs";
|
$local_url = "http://".$this->micro_service_net1.":3033/marketjobs";
|
||||||
$out = $this->APIcall('GET', $local_url, $in);
|
$out = $this->APIcall('GET', $local_url, $in);
|
||||||
$this->saveCache($endpoint,$out,3000);
|
$this->saveCache($endpoint,$out,3000);
|
||||||
|
|||||||
Reference in New Issue
Block a user