Tune caching: shorter revalidate, lighter fetches, on-demand purge.

Use paginated list fetches with stripped list payloads, recent-item helpers for carousels, fetch tags + POST /api/revalidate, and 5-minute page ISR instead of 1 hour.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-14 11:32:18 +03:30
co-authored by Cursor
parent f341b010c0
commit 02c7dd51d2
13 changed files with 227 additions and 52 deletions
+4
View File
@@ -0,0 +1,4 @@
# Runtime env (set in PM2 ecosystem on the websites VM — not committed)
# Secret for POST /api/revalidate (on-demand cache purge after CMS publish)
REVALIDATE_SECRET=