Blog source
This commit is contained in:
@@ -52,7 +52,11 @@ class WrenchBlog extends BaseController
|
|||||||
$endpoint = "WRENCH_BLOG_DATA";
|
$endpoint = "WRENCH_BLOG_DATA";
|
||||||
$res1 = $this->getCache($endpoint);
|
$res1 = $this->getCache($endpoint);
|
||||||
if (count($res1)==0){
|
if (count($res1)==0){
|
||||||
$rawData = $this->apiData($blog_id);
|
//$rawData = $this->apiData($blog_id);
|
||||||
|
// $res1= $rawData['payload']; //[0]['payload'];
|
||||||
|
$remoteURL = "https://blogdata.chiefsoft.net/blogdata/wrenchboard";
|
||||||
|
$in["blog"] ="wrenchboard";
|
||||||
|
$rawData = $this->APIcall('GET', $remoteURL, $in);
|
||||||
$res1= $rawData['payload']; //[0]['payload'];
|
$res1= $rawData['payload']; //[0]['payload'];
|
||||||
$this->saveCache($endpoint,$res1);
|
$this->saveCache($endpoint,$res1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user