Pipedash
Features

Cache

The caches Pipedash keeps, how Settings shows and clears them, and what a factory reset deletes.

Pipedash keeps 3 caches in its database so the dashboard opens without waiting for providers. A fourth cache on disk holds downloaded job logs. The Cache section in Settings shows how much each holds and clears them.

What Pipedash caches

CacheFilled byUsed by
PipelinesEvery provider fetchThe dashboard
Run historyRun history fetches, which add only new and changed runsThe run history page
Workflow parametersThe first trigger form open for a workflow. Entries expire after 10 minutes.The trigger form
Run logsThe first open of a job log. Stored on disk in <data_dir>/cache/run-logs, not in the database.The Logs tab of the run details

The Run logs page covers the log cache limits: 2 GB on the desktop app and the web server, 512 MB on the iPhone, and 30 days without a read.

Settings also shows the number of stored metric entries. It is 0 when the metrics service is off. Clearing caches leaves metrics alone, and only a metrics flush deletes them. The Metrics page covers the flush.

REST routes

On the web server every clear action has a route under /api/v1.

ActionRoute
Read countsGET /cache/stats
Clear all run historyDELETE /cache/run-history
Clear pipelinesDELETE /cache/pipelines
Clear workflow parametersDELETE /cache/workflow-params
Clear run logsDELETE /cache/run-logs
Clear all fourDELETE /cache/

The count route returns pipelines_count, run_history_count, workflow_params_count, metrics_count and run_logs_bytes. Clearing pipelines returns { "cleared": N } with the number of deleted rows. Clearing all caches runs the three database clears as one transaction, then clears the run logs.

What clears caches on its own

  • Status changes: the refresh loop clears the run history of a pipeline whose status or last run changed. FluxCD keeps its reconciliation history and is the exception. The Refresh page covers the loop.
  • Manual refresh: the Refresh all button and POST /api/v1/refresh/all clear the run history of every provider except FluxCD first.
  • Actions: the desktop app and the web server clear the run history of the pipeline for a trigger, cancel, review or rerun. FluxCD reconciliation keeps retained history, including archived records. Explicit run-history clearing in Settings or through the REST API still deletes those records.
  • Time: workflow parameters expire 10 minutes after Pipedash stored them. Run logs go after 30 days without a read.
  • Size: the run log cache deletes the least recently read logs when it passes its budget.
  • Provider changes: saving a provider deletes its run logs. Removing a provider deletes its pipelines, their run history, their workflow parameters and its run logs, and queues deletion of its token.

Settings page

Settings, Cache page with counts and Clear buttons. Desktop and mobile.
Cache counts per store.

The Cache page in Settings lists Pipelines, Run history and Workflow parameters, each as N items with a Clear button. Run logs shows the size on disk, such as 23.5 MB, with a Clear button. A Metrics row appears when the metrics count is above 0 and has no Clear button. A Clear all caches button sits at the bottom.

A clear starts at once, without a confirmation. A green notification such as "Run history cache cleared" confirms it. A failure shows a red notification such as "Couldn't clear run history cache". Counts refresh every 30 seconds while the page is visible. After a clear, Settings refreshes the provider and pipeline lists.

Factory reset

The Factory reset button sits in Settings, General, in the Danger zone card. Its dialog, also titled Factory reset, lists what it deletes: providers and their saved tokens, all cached data and metrics, and theme and platform preferences. The dialog adds that storage configuration, external secrets, backups and exports stay. The Reset everything button confirms the reset.

The desktop app and the web server run the same core steps in order:

  1. Removal of every provider, with its caches and token.
  2. Removal of every provider entry from config.toml.
  3. Removal of every token left in the token store.
  4. One transaction that clears all caches.
  5. Deletion of all custom views, their members and the pins, and a reset of the display settings of the All and Pinned views. Hidden pipelines go too. The Views page covers them.
  6. Deletion of the run log cache.
  7. Deletion of all metrics and of the metrics processing state.

A failed step stops the reset. The notification "Factory reset incomplete" says some data may already be gone. The reset also deletes the alert queue and the push registrations of paired phones. The desktop app also resets its local notification state, removes its alert server and resets its app lock. The web server also deletes push pairings from older apps.

On success the UI clears the browser localStorage. This clears the theme, the notification switch, the sidebar state and the expanded sections. A notification titled "Factory reset complete" reports how many providers Pipedash deleted. The reset keeps the database file and the settings outside the provider entries of config.toml, so [views.*] tables stay.

The REST route POST /api/v1/factory-reset runs the web server steps. It returns providers_removed, caches_cleared, tokens_cleared and metrics_cleared.