reduce cache perios
This commit is contained in:
@@ -22,7 +22,7 @@ class WrenchJobManager extends BaseController
|
||||
$endpoint = "WRENCHBOARD_JOB_LISTJOBS-" . $in["client_uid"];
|
||||
|
||||
$out = $this->getCache($endpoint);
|
||||
// if (count($out) == 0) { //suspend cache for now
|
||||
// if (count($out) == 0) { //suspend cache for now
|
||||
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||
$this->saveCache($endpoint, $out, 1500);
|
||||
$out['internal_return'] = $ret;
|
||||
|
||||
@@ -80,7 +80,7 @@ class WrenchJobs extends BaseController
|
||||
$out = $this->APIcall('GET', $local_url, $in);
|
||||
// dont cache junk
|
||||
if ( is_array($out) && is_array($out["result_list"]) && count($out["result_list"]) > 0){
|
||||
$this->saveCache($endpoint,$out,360);
|
||||
$this->saveCache($endpoint,$out,30);
|
||||
}
|
||||
$out['internal_return'] = 0; // just backwad comaptobility
|
||||
log_message('critical', "***** ***** WrenchJobs::getJobsData Cache Done:::Ret ");
|
||||
|
||||
Reference in New Issue
Block a user