Skip to content

feat(templates): cache the public template store - #1801

Merged
viethung0o0 merged 5 commits into
mainfrom
feat/template-store-cache
Nov 27, 2026
Merged

viethung0o0 merged 5 commits into
mainfrom
feat/template-store-cache

Conversation

@viethung0o0

Copy link
Copy Markdown
Contributor

Summary

  • The public template store (store page, home Templates tab and GET /v1/template-store) is now served from a per-tenant cache.
  • Results, filters, keyword search and share expiry behave exactly as before; host links and branding are never cached.
  • Every store write, share change, template save, delete and workspace purge bumps the tenant's cache version in the same transaction.
  • Memory is bounded: 8 MB per process, 1 MiB per entry, 15-minute TTL; Redis failures fall back to the database.
  • Adds one migration: the CacheVersion table.
  • During a rolling deploy, writes handled by old pods can show stale store data for up to 15 minutes.

@github-actions github-actions Bot added the feature New feature or request label Nov 27, 2026
@viethung0o0
viethung0o0 marked this pull request as ready for review November 27, 2026 15:35
@viethung0o0
viethung0o0 merged commit a4201b5 into main Nov 27, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants