当方法打上@CacheRefresh,到了自动刷新缓存的时候该方法上的拦截器全部失效
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
JetCacheInterceptor 中
@Override
public Object invoke(final MethodInvocation invocation) throws Throwable {
。
。
。
CacheInvokeContext context = configProvider.newContext(cacheManager).createCacheInvokeContext(cacheConfigMap);
context.setTargetObject(invocation.getThis());
context.setInvoker(invocation::proceed);//此处导致在refresh的时候拦截器无法生效
context.setMethod(method);
context.setArgs(invocation.getArguments());
context.setCacheInvokeConfig(cac);
context.setHiddenPackages(globalCacheConfig.getHiddenPackages());
}
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in JetCacheInterceptor.invoke, especially the CacheInvokeContext setup around invocation::proceed, and trace how automatic cache refresh invokes the method. Confirm which interceptors are skipped during refresh and verify that the method's interceptors remain effective when the issue is fixed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100