Cache protection
This commit is contained in:
@@ -61,7 +61,10 @@ class WrenchJobs extends BaseController
|
|||||||
if ( $countItem == 0 ){
|
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);
|
// dont cache junk
|
||||||
|
if ( is_array($out) && is_array($out["result_list"]) && count($out["result_list"]) > 0){
|
||||||
|
$this->saveCache($endpoint,$out,180);
|
||||||
|
}
|
||||||
$out['internal_return'] = 0; // just backwad comaptobility
|
$out['internal_return'] = 0; // just backwad comaptobility
|
||||||
log_message('critical', "***** ***** WrenchJobs::getJobsData Cache Done:::Ret ");
|
log_message('critical', "***** ***** WrenchJobs::getJobsData Cache Done:::Ret ");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user