Subversion Repositories SmartDukaan

Rev

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

Rev 14734 Rev 14786
Line 75... Line 75...
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'=>$storeProduct['source_id'])));
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;
84
			$tag = $prefix.time();
84
			$tag = $prefix.time();
85
			if($storeId == 2){				
85
			if($storeId == 2){