Skip to content

Commit 81423c7

Browse files
committed
chore: remove old caching logic
1 parent 3a7e8bb commit 81423c7

14 files changed

+7
-1310
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
@@ -544,7 +544,6 @@ export class StagehandPage {
544544
requestId,
545545
variables,
546546
previousSelectors: [],
547-
skipActionCacheForThisStep: false,
548547
domSettleTimeoutMs,
549548
timeoutMs,
550549
})
@@ -669,10 +668,6 @@ export class StagehandPage {
669668
},
670669
});
671670

672-
if (this.stagehand.enableCaching) {
673-
this.stagehand.llmProvider.cleanRequestCache(requestId);
674-
}
675-
676671
throw e;
677672
});
678673
}
@@ -795,10 +790,6 @@ export class StagehandPage {
795790
},
796791
});
797792

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

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)