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

Add documentation about Stache Cache store #1370

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion content/collections/docs/stache.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Any additional indexes you have will be updated [when appropriate](#when-does-in

## Cache Driver

Since the Stache places its data in [Laravel's cache](https://laravel.com/docs/cache#configuration), there's no special configuration necessary to change it.
By default the Stache places its data in the default [Laravel cache store](https://laravel.com/docs/cache#configuration), there's no special configuration necessary to change it.

Whatever your default caching driver is for the rest of your app is where your Stache will be.

Expand All @@ -172,6 +172,15 @@ By default it's in the filesystem, but of course you can feel free to use Redis,
CACHE_DRIVER=redis
```

If you want to change which cache store is used by the Stache, you can change the `statamic.stache.cache_store` configuration key:

```php
// config/statamic/stache.php
return [
'cache_store' => 'stache-cache',
]
```

## Locks

Statamic will create indexes and build the cache on demand where appropriate. Depending on the amount of content you have, this
Expand Down