blog refresh

This commit is contained in:
CHIEFSOFT\ameye
2024-09-01 17:24:11 -04:00
parent ad2aa941ce
commit 0f10f9cec5
2 changed files with 49 additions and 1 deletions
+7 -1
View File
@@ -51,10 +51,16 @@ class AirFlow extends BaseController
}
public function flowRefreshBlog(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
$endpoint = "WRENCH_BLOG_DATA";
$res1 = $this->getCache($endpoint);
if (count($res1)==0){
$rawData = $this->apiData(0);
$res1= $rawData['payload']; //[0]['payload'];
$this->saveCache($endpoint,$res1);
}
log_message('critical', "AirFlow::flowRefreshBlog ********* ALL ".serialize($in) );
return []; //json_encode( $final_out );
}