Skip to content

improve cache components migration for revalidation exports#108

Merged
huozhi merged 1 commit intomainfrom
use-cache-mig
Jan 5, 2026
Merged

improve cache components migration for revalidation exports#108
huozhi merged 1 commit intomainfrom
use-cache-mig

Conversation

@huozhi
Copy link
Copy Markdown
Contributor

@huozhi huozhi commented Dec 12, 2025

  • Added a Revalidate → cacheLife Mapping Table
  • Added 4 complete examples covering different scenarios:
    • Exact match (revalidate = 3600cacheLife('hours'))
    • Custom value (revalidate = 1800cacheLife({ revalidate: 1800 }))
    • Short revalidation (revalidate = 60cacheLife('minutes'))
    • Dynamic content (revalidate = 0 → no "use cache" needed)

@huozhi huozhi requested a review from gaojude December 12, 2025 08:13
@huozhi huozhi changed the title improve use cache migration improve cache components migration for revalidation exports Dec 12, 2025
@huozhi huozhi merged commit edd1acf into main Jan 5, 2026
3 checks passed
@huozhi huozhi deleted the use-cache-mig branch January 5, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants