Browse Source

fix 修复 oss 预览开关未清理缓存导致延迟生效问题

疯狂的狮子Li 11 months ago
parent
commit
8ae9fc10eb

+ 1 - 0
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysConfigServiceImpl.java

@@ -154,6 +154,7 @@ public class SysConfigServiceImpl implements ISysConfigService, ConfigService {
             }
             row = baseMapper.updateById(config);
         } else {
+            CacheUtils.evict(CacheNames.SYS_CONFIG, config.getConfigKey());
             row = baseMapper.update(config, new LambdaQueryWrapper<SysConfig>()
                 .eq(SysConfig::getConfigKey, config.getConfigKey()));
         }