1(function(){ 2 3const CLEAR_TIME = 5 * 60 * 1000; // 1 à¸à¸±à¹à¸§à¹à¸¡à¸ 4 5function clearCache(){ 6 7 try{ 8 9 const lastClear = localStorage.getItem("score_last_clear"); 10 11 if(!lastClear || Date.now() - lastClear > CLEAR_TIME){ 12 13 Object.keys(localStorage).forEach(function(key){ 14 15 if( 16 key.startsWith("score_data_") || 17 key.startsWith("standing_data_") 18 ){ 19 localStorage.removeItem(key); 20 } 21 22 }); 23 24 localStorage.setItem("score_last_clear",Date.now()); 25 26 console.log("Score & Standing cache cleared"); 27 28 } 29 30 }catch(e){ 31 console.error("Cache clear error",e); 32 } 33 34} 35 36document.addEventListener("DOMContentLoaded",clearCache); 37 38})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.