8000 Flush rewrite rules at the end of each deploy by joshuafredrickson · Pull Request #1567 · roots/trellis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Flush re 8000 write rules at the end of each deploy #1567

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

Merged
merged 1 commit into from
Apr 12, 2025

Conversation

joshuafredrickson
Copy link
Contributor
@joshuafredrickson joshuafredrickson commented Apr 1, 2025

Permalinks aren’t automatically flushed on deployment, so I usually handle it in a deploy hook. Since rewrites function like a cache—similar to Acorn, ACF, or Redis—it makes sense to clear them during deployment.

For example, adding a new CPT requires flushing rewrites manually for the archive page to work. Automating this would help ensure rewrites just work after deployment.

@swalkinshaw swalkinshaw merged commit f9b770b into roots:master Apr 12, 2025
2 checks passed
@swalkinshaw
Copy link
Member

Thank you!

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
0