mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-16 08:45:53 +08:00
feat: dontStoreInCache
This commit is contained in:
parent
853ff1875c
commit
5b0f2da02f
@ -310,6 +310,7 @@ const baseScrapeOptions = z
|
||||
blockAds: z.boolean().default(true),
|
||||
proxy: z.enum(["basic", "stealth", "auto"]).optional(),
|
||||
maxAge: z.number().int().gte(0).safe().default(0),
|
||||
dontStoreInCache: z.boolean().default(false),
|
||||
})
|
||||
.strict(strictMessage);
|
||||
|
||||
|
@ -6,7 +6,8 @@ import { EngineError, IndexMissError } from "../../error";
|
||||
import crypto from "crypto";
|
||||
|
||||
export async function sendDocumentToIndex(meta: Meta, document: Document) {
|
||||
const shouldCache = meta.winnerEngine !== "cache"
|
||||
const shouldCache = !meta.options.dontStoreInCache
|
||||
&& meta.winnerEngine !== "cache"
|
||||
&& meta.winnerEngine !== "index"
|
||||
&& meta.winnerEngine !== "index;documents"
|
||||
&& !meta.featureFlags.has("actions")
|
||||
|
Loading…
x
Reference in New Issue
Block a user