From a0c62af25cbf90d0485b0445789b81bb78179a0a Mon Sep 17 00:00:00 2001 From: aewing Date: Tue, 16 Dec 2025 09:34:29 -0600 Subject: [PATCH] added clear cache for testing --- frontend/index.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/index.html b/frontend/index.html index eb46db9..c5e5a22 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -126,6 +126,14 @@ let jobsCache = [], visibleJobs = [], currentJob = null; + function clearJobsCache(message='Cache cleared. Reloading…'){ + jobsCache = []; + visibleJobs = []; + currentJob = null; + resultsEl.innerHTML = `
${message}
`; + } + window.clearJobsCache = clearJobsCache; + const progressBar = document.getElementById('progressBar'); const searchBox = document.getElementById('searchBox'); const resultsEl = document.getElementById('results'); @@ -169,7 +177,8 @@ // --- Fetch all jobs --- async function fetchAllJobs(){ - startProgress(); jobsCache=[]; visibleJobs=[]; resultsEl.innerHTML = '
Loading…
'; + startProgress(); + clearJobsCache('Loading…'); let page=1, totalItems=0; let firstBatchRendered=false; try{ while(true){