Subversion Repositories SmartDukaan

Rev

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

Rev 14786 Rev 15085
Line 73... Line 73...
73
				$url = $storeProduct['marketPlaceUrl'];
73
				$url = $storeProduct['marketPlaceUrl'];
74
				$storeId = 	$storeProduct['source_id'];
74
				$storeId = 	$storeProduct['source_id'];
75
				$available_price = $storeProduct['available_price'];
75
				$available_price = $storeProduct['available_price'];
76
			}
76
			}
77
			$cachekey = 'store-'.$storeId;
77
			$cachekey = 'store-'.$storeId;
78
			$store = Cache::read($cachekey,'month');
78
			//$store = Cache::read($cachekey,'month');
79
			if(empty($store)) {
79
			if(empty($store)) {
80
				$store = $this->Store->find('first',array('recursive'=>-1,'conditions'=>array('id'=>$storeId)));
80
				$store = $this->Store->find('first',array('recursive'=>-1,'conditions'=>array('id'=>$storeId)));
81
				Cache::write($cachekey,$store,'month');			
81
				Cache::write($cachekey,$store,'month');			
82
			}
82
			}
83
			$prefix = "SHA".$storeId;
83
			$prefix = "SHA".$storeId;