Subversion Repositories SmartDukaan

Rev

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

Rev 14344 Rev 14345
Line 236... Line 236...
236
		$this->set(compact('storeProduct','activestores'));
236
		$this->set(compact('storeProduct','activestores'));
237
	}
237
	}
238
 
238
 
239
	public function getliveprice($bundleId=null,$storeId=null) {
239
	public function getliveprice($bundleId=null,$storeId=null) {
240
		$cachekey = 'liveprice-'.$bundleId.'-'.$storeId;
240
		$cachekey = 'liveprice-'.$bundleId.'-'.$storeId;
-
 
241
		$this->log($cachekey,'api');
241
		$products = Cache::read($cachekey,'fivemin');
242
		// $products = Cache::read($cachekey,'fivemin');
242
		if(empty($products)) {
243
		if(empty($products)) {
243
			$result = array();
244
			$result = array();
244
			$this->response->type('json');
245
			$this->response->type('json');
245
			$this->layout = 'ajax';
246
			$this->layout = 'ajax';
246
			$url = $this->apihost."Catalog/fetchLivePrices/?skuBundleId=$bundleId&source_id=$storeId";
247
			$url = $this->apihost."Catalog/fetchLivePrices/?skuBundleId=$bundleId&source_id=$storeId";