fix: update cache configuration to 10 minutes in Google Sheets API route

This commit is contained in:
Lucas Rayan committed 2025-11-09 18:31:14 -03:00
1 parent a28058d68c
commit c243a7b189
1 file changed
+2 -2
+2 -2
View File
@@ -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;