1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7246],{3542:function(e,c,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cache",function(){return s(2643)}])},2643:function(e,c,s){"use strict";s.r(c),s.d(c,{__N_SSP:function(){return d},default:function(){return u}});var a=s(5893),n=s(1163),t=s(1664),l=s.n(t),h=s(8262),r=s.n(h),i=s(3454);let o=i.env.APP_PASSWORD;var d=!0;function u(e){let c=(0,n.useRouter)(),{action:s,result:t,message:h,keys:i,ttl:d,cacheKey:u=""}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h1",{children:"Cache Page"}),(0,a.jsxs)("div",{className:r().navButtons,children:[(0,a.jsx)("div",{children:(0,a.jsx)(l(),{href:"/cache?password=".concat(o),children:"Keys"})}),(0,a.jsx)("div",{className:r().backButton,onClick:()=>c.back(),children:"Back"})]}),h&&(0,a.jsx)("div",{className:r().message,children:h}),"keys"===s&&(0,a.jsxs)("div",{className:r().keyBox,children:[(0,a.jsxs)("div",{className:r().flush,children:[" ",(0,a.jsx)("a",{href:"/help/cache?password=".concat(o,"&action=flush"),children:"Flush All Keys"})]}),(0,a.jsxs)("pre",{children:["Click a key to see its value:",i.length>0&&i.map((e,c)=>{let s=encodeURIComponent(e),n=e.match(/:article:(.*):(.*)/);return(0,a.jsxs)("div",{className:r().cacheData,children:[(0,a.jsxs)("span",{title:e,children:[e.substring(0,80)," "]}),(0,a.jsx)("a",{href:"/help/cache?password=".concat(o,"&action=get&key=").concat(s),children:"View"}),(0,a.jsx)("a",{href:"/help/cache?password=".concat(o,"&action=delete&key=").concat(s),children:"Delete"}),n&&(0,a.jsx)("div",{children:(0,a.jsx)(l(),{href:"/article/".concat(n[2]),target:"_blank",children:"Article"})})]},c)}),0===i.length&&(0,a.jsx)("div",{children:"No Keys Found!"})]})]}),t.length>0&&(0,a.jsxs)("div",{className:r().resultBox,children:[(0,a.jsxs)("div",{className:r().deleteBox,children:["Delete key:"," ",(0,a.jsx)("a",{href:"/help/cache?password=".concat(o,"&action=delete&key=").concat(u),children:u})]}),(0,a.jsxs)("span",{className:r().ttl,children:[" ","Time to live in Seconds: ",d,". Human Readable: ",function(e){let c=Math.floor(e/86400),s=Math.floor(e%86400/3600),a=Math.floor(e%3600/60),n=[];return c&&n.push("".concat(c," days")),s&&n.push("".concat(s," hours")),a&&n.push("".concat(a," minutes")),n.join(" ")}(d)]}),(0,a.jsx)("pre",{children:JSON.parse(JSON.stringify(t,null,4)).replace(/,/g,", \n")})]})]})}},8262:function(e){e.exports={keyBox:"cache_keyBox__etA5B",flush:"cache_flush__GJMEI",ttl:"cache_ttl__GbaT8",cacheData:"cache_cacheData__JmkSu",navButtons:"cache_navButtons__ih3U3",message:"cache_message__6gQnv",deleteBox:"cache_deleteBox__CQQa9"}}},function(e){e.O(0,[6122,9774,2888,179],function(){return e(e.s=3542)}),_N_E=e.O()}]);
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.