fix: update cache configuration to 10 minutes in Google Sheets API route
This commit is contained in:
1 parent
a28058d68c
commit
c243a7b189
1 file changed
+2
-2
@@ -2,8 +2,8 @@ import { google } from 'googleapis';
|
||||
import { NextResponse } from 'next/server';
|
||||
|
||||
|
||||
// Configurar cache de 1 hora (sempre exportar um número, 0 = sem cache)
|
||||
export const revalidate = 3600;
|
||||
// Configurar cache (sempre exportar um número, 0 = sem cache)
|
||||
export const revalidate = 60 * 10; // 10 minutos
|
||||
|
||||
// Habilitar/desabilitar cache
|
||||
const ENABLE_CACHE = revalidate > 0;
|
||||
|
||||
Reference in new issue
Block a user