Cache settings: CADDY_CACHE_BACKEND_TIMEOUT, CADDY_CACHE_STORAGE, extra-only CADDY_CACHE_EXTRA_CONFIG, two-pass postStart warm, scoped purges (template #170)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- kubernetes
- Lĩnh vực
- devops, documentation, infrastructure
Hướng nghiên cứu
Read the template changelog and the existing caching and Kubernetes deploy pages after the template fix is released. Update the cache settings, upgrade note, pod warm-up behavior, and scoped purge guidance described here; check the referenced template and bundle issues for released details. Done when the docs match the released behavior and explain when to use scoped purges versus a full flush.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Template components-web-app#170 (cold cache after a rollout or full flush gave Cloudflare 504s on a heavy CMS page). Fix on the template branch fix/cold-cache-170, landing in the next template release after 2.0.0-alpha.37; the template's CHANGELOG.md will link the final commits. Document it once it's released.
Cache settings (variables / caching page)
- New
CADDY_CACHE_BACKEND_TIMEOUT(default30s, was Souin's 10 s): how long Souin waits for the origin before a 504. A cold CMS page that takes ~12 s is now served and cached instead of 504ing. Optional; on deploys set it asCWA_API_CADDY_CACHE_BACKEND_TIMEOUT. Must be a Go duration (45s,1m30s); the deploy refuses anything else. - New
CADDY_CACHE_STORAGE(defaultotter): the Souin store, now its own setting, so otter is used everywhere (dev and e2e too, not only deploys). On deploys:CWA_API_CADDY_CACHE_STORAGE. A store that isn't built into the image only fails when Caddy starts (php crash-loops), so checkfrankenphp build-infofirst. CADDY_CACHE_EXTRA_CONFIGis now extra directives only: no store line and notimeoutblock. The deploy refuses both and names the variable to use instead (a secondtimeoutblock replaces the whole first one in Souin's parser, so it silently brought back the 10 s 504). Its old meaning ("otter" by default) is gone; remove any page that tells readers to set it tootter.- A
CWA_API_copy ofCADDY_CACHE_CDN_CONFIGorCADDY_CACHE_EXTRA_CONFIGis refused (reserved); the error now says to set the plain CI variable. - Chart:
php.caddy.storageConfigis renamedphp.caddy.extraConfigand the secret keycaddy-cache-storage-configiscaddy-cache-extra-config(written only when set). No fallback. - Upgrade note to show: a project that set
CADDY_CACHE_EXTRA_CONFIGtootterand/or atimeout { backend … }block deletes it in the same deploy as the template update, or the deploy fails.
Deploy / Kubernetes page (new pod warm, template #160)
- The php pod's
postStartnow runswarm-http-cachetwice: thegzipkeys SSR uses, then--accept-encoding=brfor the keys browsers and Cloudflare use. Each pass stops atCWA_CI_API_WARM_HTTP_CACHE_MAX_TIME(60 s); the whole hook is capped at 2 × that + 270 s (390 s by default);0still turns it off. A new pod can take up to that long before readiness. - Page HTML is not warmed in postStart (the deploy's purge drops it straight after the rollout; old PWA pods could render it with old
/_nuxthashes; reasons on #170). The post-deploywarm_cachestill warms pages.
Purging (suggestion 3 on #170, agreed)
- Steer content purges to
silverback:api-components:purge-http-cache --path /<path>or--tag <tag>(bundle #390). Present the full flush ("Purge all cached data",purge-http-cachewith no options) as a last resort: it empties the API entries too, and on a CMS-heavy page the next visitor waits for a full cold render (12 s on Cymru Kitchens' home page). Bundle side: components-web-app/api-components-bundle (issue linked in a comment below).
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 0
- Merge trung bình
- 1 giờ 20 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của components-web-app/docs
-
documentation
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
components-web-app/docs#290 · 2 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
components-web-app/docs#289 · 2 bình luận ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
components-web-app/docs#237 · 2 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
components-web-app/docs#1 · 3 bình luận ·
Tất cả issue của components-web-app/docs
Issue tương tự
-
bug require-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
expressjs/expressjs.com#2549 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
umami-software/umami#4686 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug]: Device screenshot fails with 500 on iPhone Duo (Xcode 27.2): serve-sim calls simctl without --displayCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
pingdotgg/t3code#24900 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
inu-appcenter/UNIDorm-web#411 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🐛 bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 2 ngày