Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[5.x] Allow stache stores to be excluded from warming and clearing #11830

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
jasonvarga merged 2 commits into statamic:5.x from ryanmitchell:feature/remove-stache-store
Oct 16, 2025

Conversation

Copy link
Contributor

@ryanmitchell ryanmitchell commented May 29, 2025
edited
Loading

When using the eloquent driver with split configurations and running stache:warm, stache stores that aren't file driven are still registered and warmed. Most of the time this is not noticeable as theres no data, but when you have lots of entries with terms it creates the associations and this is a big bottleneck.

This PR adds the ability to exclude registered stache stores from warming and clearing operations, which allows the eloquent driver to ensure they are excluded.

See: statamic/eloquent-driver#433

Copy link
Member

@duncanmcclean duncanmcclean left a comment

Choose a reason for hiding this comment

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

This approach seems to cause issues when you're using split configs (eg. storing collections in the database, but keeping entries as flat files). 🤔

Also, when I try to import a taxonomy on the Eloquent side, it fails due to it hitting the removed taxonomies store.

Going to leave this open until @jasonvarga is back in case he has any ideas.

Copy link
Contributor Author

ryanmitchell commented May 30, 2025
edited
Loading

Yep, maybe the better approach is to provide a way to exclude stores from warming, as that solves the actual problem, rather than a non-stache driver removing stache stores. Anyway, one to discuss.

[edit]: I've updated this PR to take the excluding approach.

@ryanmitchell ryanmitchell changed the title (削除) [5.x] Allow stache stores to be removed (削除ここまで) (追記) [5.x] Allow stache stores to be excluded from warming and clearing (追記ここまで) Jun 2, 2025
@jasonvarga jasonvarga merged commit 260dfff into statamic:5.x Oct 16, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@edalzell edalzell edalzell left review comments

@duncanmcclean duncanmcclean duncanmcclean requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /