drupflare/worker - v1.0.4
    Preparing search index...

    Function fanoutDecision

    • Picks the policy for one invalidation.

      limit is PREFILL_ON_SAVE's cap, which still bounds the queue rows of a single save.

      The lazy branch is safe only when stale is true: an unqueued page is served from its previous KV generation (readStalePage(), which needs PAGE_KV, unbound in the canonical config). With no stale tier the pages are queued for the alarm chain instead.

      Parameters

      • fanout: number
      • limit: number
      • stale: boolean = true
      • rowsPerPage: number = ROWS_PER_TAGGED_PAGE

      Returns FanoutDecision