reduce cache perios

This commit is contained in:
CHIEFSOFT\ameye
2025-07-12 12:20:34 -04:00
parent 4b937d9102
commit e8fdc26641
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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 ");