MCPcopy
hub / github.com/chavyleung/scripts / getcache

Function getcache

chavy.box.js:172–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 }
171 // 如果调用这个方法来获取缓存, 且标记为`非调试模式`
172 const getcache = () => {
173 console.log(`[ERROR] 调试模式: 正在使用缓存的页面!`)
174 boxdata.syscfgs.isDebugMode = false
175 return $.getjson($.KEY_web_cache).cache
176 }
177 await $.http.get($.web).then(
178 (resp) => {
179 if (/<title>BoxJs<\/title>/.test(resp.body)) {

Callers 1

handlePageFunction · 0.70

Calls 2

logMethod · 0.45
getjsonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…