提交 ea4e2846 编写于 作者: O o2null

Merge branch 'fix/流程中引入脚本在脚本更新后缓存为更新的问题' into 'wrdp'

[流程平台]修复流程中引入脚本在脚本更新后缓存未更新的问题

See merge request o2oa/o2oa!4255
......@@ -453,7 +453,7 @@ public class ElementFactory extends AbstractFactory {
}
public CompiledScript getCompiledScript(String applicationId, Activity o, String event) throws Exception {
CacheCategory cacheCategory = new CacheCategory(o.getClass());
CacheCategory cacheCategory = new CacheCategory(o.getClass(), Script.class);
CacheKey cacheKey = new CacheKey("getCompiledScript", applicationId, o.getId(), event);
Optional<?> optional = CacheManager.get(cacheCategory, cacheKey);
CompiledScript compiledScript = null;
......@@ -598,7 +598,7 @@ public class ElementFactory extends AbstractFactory {
}
public CompiledScript getCompiledScript(String applicationId, Route o, String event) throws Exception {
CacheCategory cacheCategory = new CacheCategory(Route.class);
CacheCategory cacheCategory = new CacheCategory(Route.class, Script.class);
CacheKey cacheKey = new CacheKey("getCompiledScript", applicationId, o.getId(), event);
Optional<?> optional = CacheManager.get(cacheCategory, cacheKey);
CompiledScript compiledScript = null;
......@@ -643,7 +643,7 @@ public class ElementFactory extends AbstractFactory {
}
public CompiledScript getCompiledScript(String applicationId, Process o, String event) throws Exception {
CacheCategory cacheCategory = new CacheCategory(Process.class);
CacheCategory cacheCategory = new CacheCategory(Process.class, Script.class);
CacheKey cacheKey = new CacheKey("getCompiledScript", applicationId, o.getId(), event);
Optional<?> optional = CacheManager.get(cacheCategory, cacheKey);
CompiledScript compiledScript = null;
......@@ -715,7 +715,7 @@ public class ElementFactory extends AbstractFactory {
}
public CompiledScript getCompiledScript(Activity activity, String event, String name, String code) {
CacheCategory cacheCategory = new CacheCategory(activity.getClass());
CacheCategory cacheCategory = new CacheCategory(activity.getClass(), Script.class);
CacheKey cacheKey = new CacheKey("getCompiledScript", activity.getId(), event, name, code);
Optional<?> optional = CacheManager.get(cacheCategory, cacheKey);
CompiledScript compiledScript = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册