diff --git a/public/my.html b/public/my.html index 09b1d33..b05d668 100644 --- a/public/my.html +++ b/public/my.html @@ -31,5 +31,5 @@ - + diff --git a/public/my.js b/public/my.js index d44831a..56b9720 100644 --- a/public/my.js +++ b/public/my.js @@ -849,7 +849,7 @@ try{ const r=await (await fetch('/api/public/placement',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({mode:m})})).json(); if(r&&r.error){ const ex=document.getElementById('plExplain'); if(ex)ex.textContent=r.error; return; } - load(d.id); // redraw from the server so the panel and the copy can never disagree + try{sessionStorage.setItem('rmc.fresh','1')}catch(e){} load(d.id); // redraw from the server (cache-bypassing) so the panel and the copy can never disagree }catch(e){} }; const bt=document.getElementById('plTeam'), bd=document.getElementById('plDirect'); diff --git a/server.js b/server.js index 0a0b671..189223b 100644 --- a/server.js +++ b/server.js @@ -1586,6 +1586,7 @@ async function handleApi(req,res,pathname){ if(!ps)return json(res,401,{error:'Not signed in.'}); const pb=await bodyJson(req).catch(()=>null); const pr=placement.set(ps.id,pb&&pb.mode); + try{ memberCache.delete(String(ps.id)); memberCache.delete(Number(ps.id)); }catch(e){} // the dashboard redraws right after; never from the stale copy (Clinton #218, 2026-10-02) return json(res,pr.error?400:200,pr); } if(req.method==='POST'&&pathname==='/api/public/profile/username'){