too much calls on bannes
This commit is contained in:
@@ -80,7 +80,7 @@ class WrenchBanners extends BaseController
|
|||||||
|
|
||||||
$previous_banners = false; // suspend the cache for now
|
$previous_banners = false; // suspend the cache for now
|
||||||
|
|
||||||
// if ( !$previous_banners ){
|
if ( !$previous_banners ){
|
||||||
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||||
$out['internal_return'] = $ret;
|
$out['internal_return'] = $ret;
|
||||||
log_message('critical', "usersBanners ********* ALL ".serialize($out) );
|
log_message('critical', "usersBanners ********* ALL ".serialize($out) );
|
||||||
@@ -89,10 +89,18 @@ class WrenchBanners extends BaseController
|
|||||||
$this->saveCache($endpoint, $out, 1500);
|
$this->saveCache($endpoint, $out, 1500);
|
||||||
$previous_banners = true;
|
$previous_banners = true;
|
||||||
}
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
$extra_banner_call = false;
|
||||||
|
|
||||||
|
if($extra_banner_call){
|
||||||
|
$extra_out["offers_list"] = $this->bannerGetOffers($in);
|
||||||
|
$extra_out["activetaskslist"] = $this->bannerGetActiveTasks($in);
|
||||||
|
}else{
|
||||||
|
$extra_out["offers_list"] = [];
|
||||||
|
$extra_out["activetaskslist"] = [];
|
||||||
|
}
|
||||||
|
|
||||||
$extra_out["offers_list"] = $this->bannerGetOffers($in);
|
|
||||||
$extra_out["activetaskslist"] = $this->bannerGetActiveTasks($in);
|
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$errMsg = ' BANNER DATA ERROR **** Caught exception: '. $e->getMessage();
|
$errMsg = ' BANNER DATA ERROR **** Caught exception: '. $e->getMessage();
|
||||||
|
|||||||
Reference in New Issue
Block a user