Subversion Repositories SmartDukaan

Rev

Rev 20450 | Rev 20453 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20450 Rev 20452
Line 24... Line 24...
24
 * admin_index method
24
 * admin_index method
25
 *
25
 *
26
 * @return void
26
 * @return void
27
 */
27
 */
28
	public function admin_index() {
28
	public function admin_index() {
29
		if($this->request->method()=='post' && $this->request->query('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_dencode($response);
32
			$response = json_decode($response);
33
			$this->set('clear', $response['1']=='Cache cleared.'?'Cache Cleared Successfully':'Could not clear cache');
33
			$this->set('clear', $response['1']=='Cache cleared.'?'Cache Cleared Successfully':'Could not clear cache');
34
		}
34
		}
35
		$type = $this->request->query('type');
35
		$type = $this->request->query('type');
36
		$search = $this->request->query('search');
36
		$search = $this->request->query('search');
37
		$page = $this->request->query('page');
37
		$page = $this->request->query('page');