further fixes

This commit is contained in:
Gergő Móricz 2025-06-03 16:12:31 +02:00
parent d7fef33224
commit 7426e54e6c
5 changed files with 7 additions and 5 deletions

View File

@ -65,7 +65,7 @@ describe("Queue Concurrency Integration", () => {
fastMode: false,
blockAds: true,
maxAge: 0,
dontStoreInCache: false,
storeInCache: true,
};
beforeEach(() => {

View File

@ -97,8 +97,8 @@ describe("Scrape tests", () => {
}, 30000);
});
describe("Index", () => {
it.concurrent("caches properly", async () => {
describe.only("Index", () => {
it.only("caches properly", async () => {
const id = crypto.randomUUID();
const url = "https://firecrawl.dev/?testId=" + id;

View File

@ -132,7 +132,7 @@ export async function performDeepResearch(options: DeepResearchServiceOptions) {
fastMode: false,
blockAds: false,
maxAge: 0,
dontStoreInCache: false,
storeInCache: true,
__experimental_cache: true,
},
}, logger, costTracking, acuc?.flags ?? null);

View File

@ -191,6 +191,7 @@ export const engineOptions: {
skipTlsVerification: true,
useFastMode: true,
stealthProxy: false,
disableAdblock: false,
},
quality: 999, // index should always be tried second ? - MG
},
@ -244,6 +245,7 @@ export const engineOptions: {
skipTlsVerification: true,
useFastMode: true,
stealthProxy: false,
disableAdblock: false,
},
quality: -1,
},

View File

@ -6,7 +6,7 @@ import { EngineError, IndexMissError } from "../../error";
import crypto from "crypto";
export async function sendDocumentToIndex(meta: Meta, document: Document) {
const shouldCache = !meta.options.dontStoreInCache
const shouldCache = meta.options.storeInCache
&& meta.winnerEngine !== "cache"
&& meta.winnerEngine !== "index"
&& meta.winnerEngine !== "index;documents"