| Line 68... |
Line 68... |
| 68 |
if($itemName != 'coming-soon' && $itemName !== 'best-deals'){
|
68 |
if($itemName != 'coming-soon' && $itemName !== 'best-deals'){
|
| 69 |
$productName = $itemcode;
|
69 |
$productName = $itemcode;
|
| 70 |
}elseif($itemName == 'coming-soon' || $itemName == 'best-deals') {
|
70 |
}elseif($itemName == 'coming-soon' || $itemName == 'best-deals') {
|
| 71 |
$productName = $itemName;
|
71 |
$productName = $itemName;
|
| 72 |
}
|
72 |
}
|
| 73 |
if(isset($productName) && !empty($productName)){
|
73 |
if(isset($productName) && !empty($productName) && !isset($authorized['isPrivateDealUser'])) {
|
| 74 |
$cache = getFileCache($productName);
|
74 |
$cache = getFileCache($productName);
|
| 75 |
}
|
75 |
}
|
| 76 |
if(isset($cache) && !empty($cache)){
|
76 |
if(isset($cache) && !empty($cache)){
|
| 77 |
$data['response'] = $cache;
|
77 |
$data['response'] = $cache;
|
| 78 |
}else{
|
78 |
}else{
|
| 79 |
$data['response']=$this->product_model->getProducts('',$this->input->post(),$configdata['module'], $itemcode,$_SERVER['QUERY_STRING']);
|
79 |
$data['response']=$this->product_model->getProducts('',$this->input->post(),$configdata['module'], $itemcode,$_SERVER['QUERY_STRING']);
|
| 80 |
if(isset($productName)){
|
80 |
if(isset($productName)) {
|
| - |
|
81 |
if(!isset($authorized['isPrivateDealUser'])) {
|
| 81 |
setFileCache($data['response'], $productName,300);
|
82 |
setFileCache($data['response'], $productName,300);
|
| - |
|
83 |
}
|
| 82 |
}
|
84 |
}
|
| 83 |
}
|
85 |
}
|
| 84 |
}else{
|
86 |
}else{
|
| 85 |
$data['response']=$this->product_model->getProducts('',$this->input->post(),$configdata['module'], $itemcode,$_SERVER['QUERY_STRING']);
|
87 |
$data['response']=$this->product_model->getProducts('',$this->input->post(),$configdata['module'], $itemcode,$_SERVER['QUERY_STRING']);
|
| 86 |
}
|
88 |
}
|