your personal website on atproto - mirror blento.app

slow down cache refresh for main handle

Florian 00cbedce 5f2595ae

+1 -1
+1 -1
src/lib/helper.ts
··· 268 268 const FIVE_MINUTES = 5 * 60 * 1000; 269 269 const now = Date.now(); 270 270 271 - if (now - (data.updatedAt || 0) > FIVE_MINUTES) { 271 + if (now - (data.updatedAt || 0) > FIVE_MINUTES && data.handle !== 'blento.app') { 272 272 try { 273 273 await fetch('/' + data.handle + '/api/refreshData'); 274 274 console.log('successfully refreshed data', data.handle);