Skip to content

Commit

Permalink
Add documentation about Stache Cache store (#1370)
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv authored Jun 25, 2024
1 parent 7c561e8 commit dcd6b5d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion content/collections/docs/stache.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,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 @@ -174,6 +174,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

0 comments on commit dcd6b5d

Please sign in to comment.