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

[5.x] Add some options to the static warm command to limit the number of requests #11258

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

arthurperton
Copy link
Contributor

@arthurperton arthurperton commented Dec 16, 2024

This PR adds some options to the static warm command to limit the number of requests. It creates more control over what is warmed and what not. Great for when you just want to warm some important pages, in a CPU-friendly way.

--include
Takes a comma-separated list. For example --include='/about,/contact,/blog/*'

--exclude
Takes a comma-separated list. For example --exclude='/contact,/news/*'

--max-depth
For example with --max-depth=1 it will visit pages like /about and /products but not /products/cool-new-shoes-1 or /any/other/path/that/is/too/deep

@jasonvarga jasonvarga merged commit 881e6c5 into statamic:5.x Dec 16, 2024
20 checks passed
@arthurperton arthurperton deleted the pr/static-warm-options branch December 16, 2024 15:28
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