File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ export default class RevalidateService {
1919 let revalidateUrl : string
2020
2121 if ( id === '/' || id === '/activity' ) {
22- revalidateUrl = ` ${ url } revalidate?secret= ${ this . REVALIDATE_SECRET } &path= ${ id } `
22+ return
2323 } else {
24- revalidateUrl = `${ url } /revalidate?secret= ${ this . REVALIDATE_SECRET } &path=/wiki/ ${ id } `
24+ revalidateUrl = `${ url } revalidation?wikiId= ${ id } `
2525 }
2626
2727 try {
28- const res = await axios . get ( revalidateUrl )
28+ const res = await axios . post ( revalidateUrl )
2929 console . log ( '♻️ REVALIDATING :' , res . data )
3030 } catch ( e ) {
3131 console . log ( '🚨 ERROR REVALIDATING: ' , e )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ interface ApiResponse {
1111
1212const myCache = new NodeCache ( { stdTTL : 100 , checkperiod : 120 } )
1313
14- const retryTime = 36000
14+ const retryTime = 15000
1515const notifyCount = 20 // every 20 count interval = 10mins
1616@singleton ( )
1717export default class WikiUpdates {
You can’t perform that action at this time.
0 commit comments