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] Ensure correct exclusion of URLs in static:warm command #10092

Merged
merged 1 commit into from
May 16, 2024

Conversation

aerni
Copy link
Contributor

@aerni aerni commented May 15, 2024

This PR closes #10089 by setting the site for each URL before it is run through the UrlExcluder class. This ensures that the getBaseUrl() in the AbstractCacher returns the correct site URL on each request.

@jasonvarga
Copy link
Member

Nice simple solution. Thanks!

Just an FYI if someone runs into this. This will not work if you still have base_url set in the static caching config. That's an old thing though.

@jasonvarga jasonvarga changed the title [5.x] Ensure correct exclusion of URLs [5.x] Ensure correct exclusion of URLs in static:warm command May 16, 2024
@jasonvarga jasonvarga merged commit 467ca55 into statamic:5.x May 16, 2024
18 checks passed
@aerni aerni deleted the fix/static-warm-command branch May 16, 2024 14: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.

URLs not excluded from static cache in a multi-site environment
2 participants