public static Map<String,Object> clearAllEntityCaches(DispatchContext dctx,Map<String,? extends Object> context){
  Delegator delegator=dctx.getDelegator();
  Boolean distributeBool=(Boolean)context.get("distribute");
  boolean distribute=false;
  if (distributeBool != null)   distribute=distributeBool.booleanValue();
  delegator.clearAllCaches(distribute);
  return ServiceUtil.returnSuccess();
}

public static Map < String , Object > clearAllEntityCaches ( DispatchContext dctx , Map < String , ? extends Object > context ) { Delegator delegator = dctx . getDelegator ( ) ; Boolean distributeBool = ( Boolean ) context . get ( "distribute" ) ; boolean distribute = false ; if ( distributeBool != null ) distribute = distributeBool . booleanValue ( ) ; delegator . clearAllCaches ( distribute ) ; return ServiceUtil . returnSuccess ( ) ; }
clear all entity caches service
