mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-19 23:49:06 +08:00
further fixes
This commit is contained in:
parent
d7fef33224
commit
7426e54e6c
@ -65,7 +65,7 @@ describe("Queue Concurrency Integration", () => {
|
||||
fastMode: false,
|
||||
blockAds: true,
|
||||
maxAge: 0,
|
||||
dontStoreInCache: false,
|
||||
storeInCache: true,
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
},
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user