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] Auto stache watcher setting #10354

Merged
merged 7 commits into from
Jun 24, 2024
Merged

[5.x] Auto stache watcher setting #10354

merged 7 commits into from
Jun 24, 2024

Conversation

jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Jun 21, 2024

This PR introduces an "automatic" Stache Watcher setting.

We've received multiple requests to disable the Stache watcher by default so that it doesn't accidentally get enabled on production.
But we can't do that otherwise during development users would be confused why their file edits are not being reflected in their site.

Rather than just a boolean for turning the watcher on or off, this PR adds an 'auto' setting that would be enabled when the environment is local and disabled for any other environment. We would make this the new default setting.

There would be no change for existing sites as they'd likely have either/both watcher in stache.php or STATAMIC_STACHE_WATCHER in .env.

statamic/ideas#1178

@jasonvarga jasonvarga marked this pull request as draft June 21, 2024 17:38
@jasonvarga jasonvarga requested review from jesseleite, jackmcdade and a team and removed request for jackmcdade and jesseleite June 21, 2024 19:52
Copy link
Member

@jackmcdade jackmcdade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smort! 🥰

# Conflicts:
#	tests/Stache/StacheTest.php
# Conflicts:
#	src/Console/Commands/SupportDetails.php
@jasonvarga jasonvarga marked this pull request as ready for review June 24, 2024 16:07
@jasonvarga jasonvarga merged commit 875667a into 5.x Jun 24, 2024
18 checks passed
@jasonvarga jasonvarga deleted the auto-stache-watcher-setting branch June 24, 2024 16:13
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