D.A.B.Tv0.0.17 Tutorial API DABT Tools ↗ GitHub ↗

tui.start_cached

tui.start_cached FIRST_PAGE

Like tui.start, but first records every page the app can reach into the page cache, so later page switches replay instead of parsing.

Parameters

  • FIRST_PAGE: the page to open. Every *.xml next to it and every shipped default page (share/defaults/pages/) is warmed too.

Returns: as tui.start.

Notes

  • Files whose name starts with _ (fragments for <include>) are skipped.
  • All warmed pages are validated before the terminal is taken over, not only FIRST_PAGE.
  • Only pages that are missing from the on-disk cache or changed since are re-recorded, behind a progress banner. The cache lives in tui.cache.disk_dir.

See also: tui.cache.warm_with_spinner, tui.load_cached