Subversion Repositories SmartDukaan

Rev

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

Rev 10216 Rev 10232
Line 143... Line 143...
143
			latestArrivalSnippets = getSnippets(latestArrivalCatalogIds.subList(0, latestArrivalCount));
143
			latestArrivalSnippets = getSnippets(latestArrivalCatalogIds.subList(0, latestArrivalCount));
144
			homePageSnippets.put(BEST_DEALS_CACHE_KEY, bestDealSnippets);
144
			homePageSnippets.put(BEST_DEALS_CACHE_KEY, bestDealSnippets);
145
			homePageSnippets.put(BEST_SELLERS_CACHE_KEY, bestSellerSnippets);
145
			homePageSnippets.put(BEST_SELLERS_CACHE_KEY, bestSellerSnippets);
146
			homePageSnippets.put(LATEST_ARRIVALS_CACHE_KEY, latestArrivalSnippets);
146
			homePageSnippets.put(LATEST_ARRIVALS_CACHE_KEY, latestArrivalSnippets);
147
			homeSnippetCache.put(HOME_PAGE_CACHE_KEY, homePageSnippets);
147
			homeSnippetCache.put(HOME_PAGE_CACHE_KEY, homePageSnippets);
-
 
148
			logger.info("Populated home snippet cache");
148
			return;
149
			return;
149
		}
150
		}
150
		
151
		
151
		bestDealSnippets = homePageSnippets.get(BEST_DEALS_CACHE_KEY);
152
		bestDealSnippets = homePageSnippets.get(BEST_DEALS_CACHE_KEY);
152
		bestSellerSnippets = homePageSnippets.get(BEST_SELLERS_CACHE_KEY);
153
		bestSellerSnippets = homePageSnippets.get(BEST_SELLERS_CACHE_KEY);
153
		latestArrivalSnippets = homePageSnippets.get(LATEST_ARRIVALS_CACHE_KEY);
154
		latestArrivalSnippets = homePageSnippets.get(LATEST_ARRIVALS_CACHE_KEY);
-
 
155
		logger.info("Returning snippets from cache");
154
	}
156
	}
155
 
157
 
156
	/**
158
	/**
157
	 * Returns a list of snippets to be used on the home page corresponding to
159
	 * Returns a list of snippets to be used on the home page corresponding to
158
	 * the given catalog ids. The snippets are in the same order as the ids in
160
	 * the given catalog ids. The snippets are in the same order as the ids in