seoAutoInfrastructureCacheTtl top-level constant
Duration
const seoAutoInfrastructureCacheTtl
The default for seoBotMiddleware(infrastructureCacheTtl:): derive
each infrastructure file's cache lifetime from what it actually
reads, rather than from one flag for the whole table.
sitemap.xmlandllms.txtneed only head metadata, so they are cached for the process lifetime unless a route is dynamic or enumerates its paths.llms-full.txtalso renders bodies, and a classic route'sbodybuilder may be async and database-backed — "classic" does not mean "immutable". It is cached for the process lifetime only when no route has a body builder at all.
Anything not eligible for a forever-cache gets 15 minutes, so a
long-running server never advertises a sitemap frozen at boot. Pass
an explicit Duration to override both, or null to cache forever
regardless.
Implementation
const Duration seoAutoInfrastructureCacheTtl = Duration(microseconds: -1);