PageSourceSearch

https://www.ballthai.com/wp-content/themes/flatsome-child/js/clear_cache_auto.js?ver=1.0.19

js ballthai.com collected 2026-10-02 03:39:28 UTC 845 bytes, 38 lines download raw bytes

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.