How to prevent page from Dyna caching
Not caching the fragment of page:
<%@ page import="com.ibm.websphere.servlet.cache.*" %>
<%
((ServletCacheResponse)response).setDoNotConsume(true);
%>
Not caching the full page:
<%
CommandContext commandContext = (CommandContext)request. getAttribute("CommandContext");
HttpControllerRequestObject controllerReq = (HttpControllerRequestObject)commandContext.getRequest();
HttpServletRequest req = controllerReq.getHttpRequest();
JSPHelper.setUncacheable(req,true);
%>
Monday, 24 February 2014
Param moveOrderPromotionCode for promotion code merge
moveOrderPromotionCode parameter is used to decide whether to merge the promotion codes.
If this parameter is set to 1, the promotion codes will be merged. If it is not specified, the default value is 0.
This is mainly used to solve the problem - "When a guest customer tries to log on as a registered user to the storefront in a B2C store, the promotion codes of the order items are not merged with the registered user's shopping cart."
moveOrderPromotionCode parameter is used to decide whether to merge the promotion codes.
If this parameter is set to 1, the promotion codes will be merged. If it is not specified, the default value is 0.
This is mainly used to solve the problem - "When a guest customer tries to log on as a registered user to the storefront in a B2C store, the promotion codes of the order items are not merged with the registered user's shopping cart."
Subscribe to:
Posts (Atom)