MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / clearCache

Function clearCache

_datafiles/html/admin/static/js/api.js:327–333  ·  view source on GitHub ↗

* Removes all cached API responses from sessionStorage. * @returns {number} the number of entries cleared

()

Source from the content-addressed store, hash-verified

325 * @returns {number} the number of entries cleared
326 */
327 function clearCache() {
328 const keys = _cacheKeys();
329 for (const key of keys) {
330 _cacheDelete(key);
331 }
332 return keys.length;
333 }
334
335 return { get, post, put, patch, delete: del, all, queue, request, clearCache, onBusy, onIdle };
336})();

Callers

nothing calls this directly

Calls 2

_cacheKeysFunction · 0.85
_cacheDeleteFunction · 0.85

Tested by

no test coverage detected