Flarum (2.x)
    Preparing search index...

    Clears the cache, showing each step as the server finishes it.

    The work recompiles every asset bundle for every frontend and locale, which runs for tens of seconds where the assets live on remote storage. A spinner alone gives no way to tell that from a request that has died, so the steps are read from the response as they arrive.

    Nothing reloads on its own at the end: the page is still running on the assets it booted with, and an admin who has just watched a rebuild should decide for themselves when to pick up the new ones.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    alertAttrs: AlertAttrs | null = null

    Attributes for an alert component to show below the header.

    attrs: ModalAttrs

    The attributes passed into the component.

    element: Element

    The root DOM element for the component.

    finished: boolean = false
    loading: boolean = false
    state: undefined

    Class component state that is persisted between redraws.

    Updating this will not automatically trigger a redraw, unlike other frameworks.

    This is different to Vnode state, which is always an instance of your class component.

    This is undefined by default.

    steps: Step[] = []
    isDismissibleViaBackdropClick: boolean = false

    Can the modal be dismissed via a click on the backdrop.

    isDismissibleViaCloseButton: boolean = false

    Can the model be dismissed with a close button (X)?

    If false, no close button is shown.

    isDismissibleViaEscKey: boolean = false

    Can the modal be dismissed by pressing the Esc key on a keyboard?

    Accessors

    Methods

    • Returns a jQuery object for this component's element. If you pass in a selector string, this method will return a jQuery object, using the current element as its buffer.

      For example, calling component.$('li') will return a jQuery object containing all of the li elements inside the DOM element of this component.

      Parameters

      • Optionalselector: string

        a jQuery-compatible selector string

      Returns JQuery

      the jQuery object for the DOM node

    • How much of the reader's attention a step deserves.

      Most of a clear is bundles that turned out not to need rebuilding, and on a forum with several locales those rows are the majority. They are worth listing — they are how you know nothing was missed — but not worth reading, so they recede and the handful of things that actually changed stand out.

      Parameters

      Returns string

    • How long a step took, where that is worth knowing.

      Bundles compiled together are timed together, so the figure belongs to the frontend rather than to each of its bundles — repeating it down every row of a group would read as several slow steps instead of one. Shown against the first row of each group only, as the console table does it.

      Parameters

      Returns Children