Skip to content

Commit de39d55

Browse files
author
ansj
committed
add clean cache param
1 parent 7da25fb commit de39d55

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/org/nlpcn/jcoder/run/mvc/processor/ApiMethodInvokeProcessor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,17 @@ public void init(NutConfig config, ActionInfo ai) throws Throwable {
3434
}
3535

3636
public void process(ActionContext ac) throws Throwable {
37+
38+
if(ac.getRequest().getParameter("_clean_cache") != null){
39+
cacheEntry = null ;
40+
}
3741

3842
if (ac.getRequest().getParameter("_rpc_init") != null) {
3943
ac.setMethodReturn(StaticValue.okMessage("rpc init ok"));
4044
doNext(ac);
4145
return;
4246
}
43-
47+
4448
String threadName = null;
4549
Task module = (Task) ac.getModule();
4650
Method method = ac.getMethod();

0 commit comments

Comments
 (0)