Subversion Repositories SmartDukaan

Rev

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

Rev 19644 Rev 19657
Line 156... Line 156...
156
			}
156
			}
157
			
157
			
158
			$cachekey = 'subcat-6';
158
			$cachekey = 'subcat-6';
159
			$getdet = Cache::read($cachekey,'subcatdetail');
159
			$getdet = Cache::read($cachekey,'subcatdetail');
160
			if(empty($getdet) || $getdet === false){
160
			if(empty($getdet) || $getdet === false){
161
				$url = $this->apihost.'deals/subCategory/?category_id=6';
161
				$url = $this->apihost."getHeaderLinks/?category_id=6";
162
				$getdet = $this->make_request($url,null);
162
				$getdet = $this->make_request($url,null);
163
				Cache::write($cachekey , $getdet ,'subcatdetail');
163
				Cache::write($cachekey , $getdet ,'subcatdetail');
164
			}
164
			}
165
			$this->set(compact('getdet'));
165
			$this->set(compact('getdet'));
166
		}
166
		}