# checks.rs — Diagnostics

Two utility commands for diagnostics and maintenance.

**`<strong class="editor-theme-bold editor-theme-code">ping()</strong>`**<span style="white-space: pre-wrap;"> Prints </span>`<span class="editor-theme-code">"PING FROM RUST"</span>`<span style="white-space: pre-wrap;"> to the console. Used to verify the Tauri bridge is working.</span>

**`<strong class="editor-theme-bold editor-theme-code">clear_cache()</strong>`**<span style="white-space: pre-wrap;"> Deletes all contents of the </span>`<span class="editor-theme-code">base_station/</span>`<span style="white-space: pre-wrap;"> folder inside the system cache directory. Exposed as a callable command so the frontend can trigger a manual cache wipe.</span>

`<span class="editor-theme-code">clear_cache_on_startup()</span>`<span style="white-space: pre-wrap;"> is the internal (non-command) version called automatically every time the app launches.</span>

<p class="callout danger">**Note for future developers:**<span style="white-space: pre-wrap;"> Clearing the cache on startup is necessary, without doing so the video feed and other assets will not load in some devices.</span></p>