Skip to content

Commit 9d1c0d5

Browse files
committed
chore: remove old caching logic
1 parent ba9efc5 commit 9d1c0d5

14 files changed

+10
-1427
lines changed

.changeset/eight-laws-listen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@browserbasehq/stagehand": minor
3+
---
4+
5+
Remove old act cache

lib/StagehandPage.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,6 @@ export class StagehandPage {
542542
requestId,
543543
variables,
544544
previousSelectors: [],
545-
skipActionCacheForThisStep: false,
546545
domSettleTimeoutMs,
547546
timeoutMs,
548547
})
@@ -670,10 +669,6 @@ export class StagehandPage {
670669
},
671670
});
672671

673-
if (this.stagehand.enableCaching) {
674-
this.stagehand.llmProvider.cleanRequestCache(requestId);
675-
}
676-
677672
throw e;
678673
});
679674
}
@@ -796,10 +791,6 @@ export class StagehandPage {
796791
},
797792
});
798793

799-
if (this.stagehand.enableCaching) {
800-
this.stagehand.llmProvider.cleanRequestCache(requestId);
801-
}
802-
803794
throw e;
804795
});
805796
}

lib/cache.ts

Lines changed: 0 additions & 98 deletions
This file was deleted.

lib/cache/ActionCache.ts

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)