From c243a7b1896bf2a326020185b7253bc3272eb2c2 Mon Sep 17 00:00:00 2001 From: Lucas Rayan Date: Sun, 9 Nov 2025 18:31:14 -0300 Subject: [PATCH] fix: update cache configuration to 10 minutes in Google Sheets API route --- app/api/placas/route.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/placas/route.js b/app/api/placas/route.js index 39cf59b..96a34cc 100644 --- a/app/api/placas/route.js +++ b/app/api/placas/route.js @@ -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;