Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use content hash as cache key for md loader #1918

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

PeachScript
Copy link
Member

🤔 这个变动的性质是?/ What is the nature of this change?

  • 新特性提交 / New feature
  • bug 修复 / Fix bug
  • 样式优化 / Style optimization
  • 代码风格优化 / Code style optimization
  • 性能优化 / Performance optimization
  • 构建优化 / Build optimization
  • 网站、文档、Demo 改进 / Website, documentation, demo improvements
  • 重构代码或样式 / Refactor code or style
  • 测试相关 / Test related
  • 其他 / Other

🔗 相关 Issue / Related Issue

💡 需求背景和解决方案 / Background or solution

Markdown loader 编译的缓存 key 从 mtime 变为 contenthash,这样可以实现在 CI/CD 平台中复用缓存,因为这类平台拉取代码时通常不会保留 git history,mtime 是不可靠的

📝 更新日志 / Changelog

Language Changelog
🇺🇸 English Use content hash as cache key for markdown loader
🇨🇳 Chinese Markdown loader 改用 content hash 作为缓存键

@vercel
Copy link

vercel bot commented Sep 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dumi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2023 0:09am

@PeachScript PeachScript merged commit 4939ce2 into master Sep 27, 2023
9 checks passed
@PeachScript PeachScript deleted the feature/content-hash-cache-key branch September 27, 2023 00:26
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.

1 participant