| Line 27... |
Line 27... |
| 27 |
*/
|
27 |
*/
|
| 28 |
public function admin_index() {
|
28 |
public function admin_index() {
|
| 29 |
if($this->request->method()=='POST' && $this->request->data('clear-cache')!=null){
|
29 |
if($this->request->method()=='POST' && $this->request->data('clear-cache')!=null){
|
| 30 |
$clearCacheApiUrl = $this->apihost."/resetCache/?type=itemCashBack";
|
30 |
$clearCacheApiUrl = $this->apihost."/resetCache/?type=itemCashBack";
|
| 31 |
$response = $this->make_request($clearCacheApiUrl,null);
|
31 |
$response = $this->make_request($clearCacheApiUrl,null);
|
| 32 |
$response = json_decode($response);
|
- |
|
| 33 |
$this->set('clear', $response['1']=='Cache cleared.'?'Cache Cleared Successfully':'Could not clear cache');
|
32 |
$this->set('clear', $response["1"]=='Cache cleared.'?'Cache Cleared Successfully':'Could not clear cache');
|
| 34 |
}
|
33 |
}
|
| 35 |
$type = $this->request->query('type');
|
34 |
$type = $this->request->query('type');
|
| 36 |
$search = $this->request->query('search');
|
35 |
$search = $this->request->query('search');
|
| 37 |
$page = $this->request->query('page');
|
36 |
$page = $this->request->query('page');
|
| 38 |
if(!isset($page)){
|
37 |
if(!isset($page)){
|