Subversion Repositories SmartDukaan

Rev

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

Rev 12228 Rev 12229
Line 40... Line 40...
40
		//end of get cache
40
		//end of get cache
41
		if(array_key_exists('fq', $_GET) || array_key_exists('sortedBy', $_GET) || array_key_exists('minPrice', $_GET)){
41
		if(array_key_exists('fq', $_GET) || array_key_exists('sortedBy', $_GET) || array_key_exists('minPrice', $_GET)){
42
			$data['response']=$this->search_model->getProducts($this->input->get(),$this->input->post(),$configdata['module'],$_SERVER['QUERY_STRING']);
42
			$data['response']=$this->search_model->getProducts($this->input->get(),$this->input->post(),$configdata['module'],$_SERVER['QUERY_STRING']);
43
		}else{
43
		}else{
44
			$searchName = 'seacrh'.$this->input->get('q');
44
			$searchName = 'seacrh'.$this->input->get('q');
-
 
45
			if(!isset($authorized['isPrivateDealUser'])) {
45
			$cache = getFileCache($searchName);
46
				$cache = getFileCache($searchName);
-
 
47
			}
46
			if(isset($cache) && !empty($cache)){
48
			if(isset($cache) && !empty($cache)){
47
				$data['response'] = $cache;
49
				$data['response'] = $cache;
48
			}else{
50
			}else{
49
				$data['response']=$this->search_model->getProducts($this->input->get(),$this->input->post(),$configdata['module'],$_SERVER['QUERY_STRING']);
51
				$data['response']=$this->search_model->getProducts($this->input->get(),$this->input->post(),$configdata['module'],$_SERVER['QUERY_STRING']);
-
 
52
				if(!isset($authorized['isPrivateDealUser'])) {
50
				setFileCache($data['response'], $searchName,300);
53
					setFileCache($data['response'], $searchName,300);
-
 
54
				}
51
			}
55
			}
52
		}
56
		}
53
		//set cache to output or renew cache
57
		//set cache to output or renew cache
54
		if(isset($cachemodule) and !empty($cachemodule))
58
		if(isset($cachemodule) and !empty($cachemodule))
55
		{
59
		{