Subversion Repositories SmartDukaan

Rev

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

Rev 15311 Rev 16234
Line 244... Line 244...
244
			$dbuser = $this->User->findById($userId);
244
			$dbuser = $this->User->findById($userId);
245
			$this->Auth->login($dbuser['User']);
245
			$this->Auth->login($dbuser['User']);
246
		}
246
		}
247
		$this->layout = "innerpages";
247
		$this->layout = "innerpages";
248
		$cachekey = 'storeproduct-'.$id;
248
		$cachekey = 'storeproduct-'.$id;
249
		$product = Cache::read($cachekey,'fivemin');
249
		// $product = Cache::read($cachekey,'fivemin');
250
		if(empty($product)) {
250
		if(empty($product)) {
251
			$url = $this->apihost.'masterData/getSkuById/'.$id;
251
			$url = $this->apihost.'masterData/getSkuById/'.$id.'?showDp=1';
252
			$product = $this->make_request($url,null);
252
			$product = $this->make_request($url,null);
253
			Cache::write($cachekey,$product,'fivemin');			
253
			Cache::write($cachekey,$product,'fivemin');			
254
		}
254
		}
255
		$storeProduct = json_decode($product[0],1);
255
		$storeProduct = json_decode($product[0],1);
256
		$activestores = Configure::read('activestores');
256
		$activestores = Configure::read('activestores');