Subversion Repositories SmartDukaan

Rev

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

Rev 16397 Rev 16679
Line 53... Line 53...
53
			$dbuser = $this->User->findById($userId);
53
			$dbuser = $this->User->findById($userId);
54
			$this->Auth->login($dbuser['User']);
54
			$this->Auth->login($dbuser['User']);
55
		}
55
		}
56
		$storeId = $this->request->query('store_id');
56
		$storeId = $this->request->query('store_id');
57
		$cachekey = 'store-'.$storeId;
57
		$cachekey = 'store-'.$storeId;
58
		// $store = Cache::read($cachekey,'month');
58
		$store = Cache::read($cachekey,'month');
59
		if(empty($store)) {
59
		if(empty($store)) {
60
			$store = $this->Store->find('first',array('recursive'=>-1,'conditions'=>array('id'=>$storeId)));
60
			$store = $this->Store->find('first',array('recursive'=>-1,'conditions'=>array('id'=>$storeId)));
61
			Cache::write($cachekey,$store,'month');			
61
			Cache::write($cachekey,$store,'month');			
62
		}
62
		}
63
		$prefix = "SHA".$storeId;
63
		$prefix = "SHA".$storeId;