1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6350],{4695:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/clear-cache",function(){return s(65025)}])},65025:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return h},default:function(){return p}});var n=s(48282),o=s(46336),i=s(30123),a=s(15852),r=s(79262),c=s(23399),l=s(28649),d=s.n(l),u=s(18529),h=!0;function p(e){let[t,s]=(0,u.useState)(e.flushTimestamp),[l,h]=(0,u.useState)(!1),[p,x]=(0,u.useState)(!1),f=(0,o.p)(),m=async()=>{try{x(!0);let e=await fetch("/api/flushRedis"),t=await e.json();t.message?(h(!1),s(t.flushedAt),x(!1),f({description:"Flushed cache successfully.",position:"top",status:"success",duration:5e3})):(h(!0),x(!1),f({description:"Something went wrong, please try again later.",position:"top",status:"error",duration:5e3}))}catch(e){h(!0),x(!1),f({description:"Something went wrong, please try again later.",position:"top",status:"error",duration:5e3})}};return(0,n.jsxs)(i.xu,{h:"auto",w:"100%",children:[(0,n.jsx)(d(),{children:(0,n.jsx)("meta",{name:"robots",content:"noindex,nofollow,noarchive"})}),(0,n.jsxs)(a.k,{mt:"100px",w:"100%",justifyContent:{base:"center"},flexWrap:{base:"wrap",lg:"wrap"},flexFlow:"column",px:{base:"xs",lg:"l"},pb:"lr",children:[(0,n.jsx)(r.x,{as:"h3",textStyle:{base:"mobile.h4",md:"desktop.h5"},children:e.isRedisReady?"Redis connected!":"Connecting to Redis..."}),(0,n.jsx)("br",{}),(0,n.jsx)(r.x,{as:"h3",textStyle:{base:"mobile.h4",md:"desktop.h5"},children:t?"Last flushed on: ".concat(t):"Last flushed on: No data"}),(0,n.jsx)("br",{}),l&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.x,{as:"h3",textStyle:{base:"mobile.h4",md:"desktop.h5"},children:"An error occurred, could not flush cached data. Please try again in sometime."}),(0,n.jsx)("br",{})]}),(0,n.jsx)(i.xu,{paddingTop:"15px",children:(0,n.jsx)(c.z,{size:"lg",isLoading:p,loadingText:"Flushing...",fontWeight:"400",textStyle:"mobile.body.medium.s",color:"ocean",borderRadius:"4px",onClick:()=>{m()},children:"Flush Cache"})})]})]})}}},function(e){e.O(0,[5068,8277,6902,2645,3227,4296,8453,8658,9813,7756,2888,9896,179],function(){return e(e.s=4695)}),_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.