Subversion Repositories SmartDukaan

Rev

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

Rev 20444 Rev 20445
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(isset($this->request->query('clear-cache'))){
29
		if($this->request->query('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_encode($response);
32
			$response = json_encode($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
		}