Subversion Repositories SmartDukaan

Rev

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

Rev 19676 Rev 19677
Line 270... Line 270...
270
		$getoffer = Cache::read($cachekey,'target');
270
		$getoffer = Cache::read($cachekey,'target');
271
		
271
		
272
		$offerresponse = "";
272
		$offerresponse = "";
273
		$getcashback = 0;
273
		$getcashback = 0;
274
		if($getoffer === false){
274
		if($getoffer === false){
275
			$offerurl = $this->apihost."getOfferForUser/?user_id=".$user_id;
275
			$offerurl = $this->apihost."getOfferForUser/?user_id=".$userId;
276
			$offerresponse = $this->make_request($offerurl,null);
276
			$offerresponse = $this->make_request($offerurl,null);
277
			Cache::write($cachekey , $offerresponse ,'target');
277
			Cache::write($cachekey , $offerresponse ,'target');
278
			if(empty($offerresponse)){
278
			if(empty($offerresponse)){
279
				$offerresponse = "";
279
				$offerresponse = "";
280
			}
280
			}