Repository navigation
feat(cache,supabase): on-demand family search, category TTL with SWR and daily Serper quota - #15
Merged
Merged
Conversation
sergiocaua311
changed the base branch from
main
to
feat/mediana-alternativas-ui
November 15, 2026 03:55
sergiocaua311
marked this pull request as ready for review
November 15, 2026 03:55
JoaoBoscoDuarte
changed the base branch from
feat/mediana-alternativas-ui
to
main
November 18, 2026 21:27
Conflitos de import em page.tsx e lib.test.ts resolvidos mantendo os dois lados; a prévia 3D pode espelhar o cache compartilhado cache_anuncios (não a build).
Collaborator
|
Mesclado. Follow-ups em #23. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relacionado à issue #1 (Parte A — custo e número de consultas ao Serper).
O que muda
preaquecer_catalogo_startup=False);GET /componentes,agentee regras usamconsultar_cache()/preco_ref(permitir_busca=False)com 0 créditos.gpu/cpu/memoria/armazenamento= 3 dias,placa_mae/fonte/cooler= 7 dias,extra= 14 dias,gabinete= 20 dias. Cache vencido responde na hora (vencido=True) e renova em background (_agendar_renovacao)._familia_deagrupa CPUs e GPUs próximas em uma única query e distribui os anúncios válidos entre os modelos irmãos viamesmo_produto().supabase/migrations/002_cache_precos.sql(cache_anuncios,links_resolvidos,consumo_serper) com hidratação e espelhamento emstore.pyeprecos.py.50créditos/dia em_postar_serper(), rotasGET /saudeeGET /precos/consumo, e exibição do contador diário no rodapé e na aba Compra.Verificação
cd backend && uv run pytest -v: 109 passed, 2 skipped (offline).cd frontend && vitest run && tsc --noEmit && next build: 9 passed, typecheck e build sem erros.