fix: incorrect cache clean

This commit is contained in:
gchust 2025-06-24 10:44:34 +08:00
parent b5f94164bf
commit 730c4d179e

View File

@ -575,7 +575,7 @@ export class FlowModel<Structure extends { parent?: any; subModels?: any } = Def
? FlowEngine.generateApplyFlowCacheKey(this['forkId'] ?? 'autoFlow', 'all', this.uid) ? FlowEngine.generateApplyFlowCacheKey(this['forkId'] ?? 'autoFlow', 'all', this.uid)
: null; : null;
if (_.isEqual(extra, this._lastAutoRunParams?.[0]) && cacheKey) { if (!_.isEqual(extra, this._lastAutoRunParams?.[0]) && cacheKey) {
this.flowEngine.applyFlowCache.delete(cacheKey); this.flowEngine.applyFlowCache.delete(cacheKey);
} }