Skip to content

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 a team, jackmcdade and jesseleite 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
@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.

3 participants