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

    Function drainPageMirrors

    • Pushes queued pages to R2, reading the html from cfw_page at drain time so a page re-rendered since it was queued mirrors its current bytes.

      Parameters

      • sql: PageMirrorSql
      • bucket: MirrorBucket | undefined
      • readPage: (path: string) => MirrorablePage | undefined

        looks a path up in cfw_page; returns undefined when the row is gone

      • opts: { hits?: ReadonlyMap<string, number>; limit?: number; site?: string } = {}

      Returns Promise<PageMirrorDrain>