Subversion Repositories SmartDukaan

Rev

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

Rev 18479 Rev 18480
Line 63... Line 63...
63
			// $storeProduct = $this->StoreProduct->find('first',$options);
63
			// $storeProduct = $this->StoreProduct->find('first',$options);
64
			$cachekey = 'storeproduct-'.$storeProductId;
64
			$cachekey = 'storeproduct-'.$storeProductId;
65
			
65
			
66
			$product = Cache::read($cachekey,'five');
66
			$product = Cache::read($cachekey,'five');
67
			if(empty($product)) {
67
			if(empty($product)) {
68
				$url = $this->apihost.'masterData/getSkuById/'.$storeProductId;
68
				$producturl = $this->apihost.'masterData/getSkuById/'.$storeProductId;
69
				$product = $this->make_request($url,null);
69
				$product = $this->make_request($producturl,null);
70
				Cache::write($cachekey,$product,'five');			
70
				Cache::write($cachekey,$product,'five');			
71
			}
71
			}
72
			$storeProduct = json_decode($product[0],1);
72
			$storeProduct = json_decode($product[0],1);
73
			$storeProductName = $storeProduct['source_product_name'];
73
			$storeProductName = $storeProduct['source_product_name'];
74
			$storeProductBrand = $storeProduct['brand'];
74
			$storeProductBrand = $storeProduct['brand'];