Subversion Repositories SmartDukaan

Rev

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

Rev 13962 Rev 14111
Line 36... Line 36...
36
			foreach ($myfavorites as $key => $value) {				
36
			foreach ($myfavorites as $key => $value) {				
37
				$cachekey = 'storeproduct-'.$value['UserAction']['store_product_id'];
37
				$cachekey = 'storeproduct-'.$value['UserAction']['store_product_id'];
38
				$product = Cache::read($cachekey,'fivemin');
38
				$product = Cache::read($cachekey,'fivemin');
39
				if(empty($product)) {
39
				if(empty($product)) {
40
					$url = $this->apihost.'masterData/getSkuById/'.$value['UserAction']['store_product_id'];
40
					$url = $this->apihost.'masterData/getSkuById/'.$value['UserAction']['store_product_id'];
-
 
41
					echo $url;
41
					$product = $this->make_request($url,null);
42
					$product = $this->make_request($url,null);
42
					Cache::write($cachekey,$product,'fivemin');			
43
					Cache::write($cachekey,$product,'fivemin');			
43
				}
44
				}
44
				$myfavorites[$key]['StoreProduct'] = json_decode($product[0],1);
45
				$myfavorites[$key]['StoreProduct'] = json_decode($product[0],1);
45
			}
46
			}