From b820081ded1d2ff476191202858206709c3d5392 Mon Sep 17 00:00:00 2001 From: Rias Date: Fri, 14 Jun 2024 15:30:55 +0200 Subject: [PATCH 1/2] Add documentation about Stache Cache store --- content/collections/docs/stache.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/content/collections/docs/stache.md b/content/collections/docs/stache.md index 4dbdd4247..c6f7af7b5 100644 --- a/content/collections/docs/stache.md +++ b/content/collections/docs/stache.md @@ -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. @@ -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 `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 From c8af8645d73a1ef23a872df65afefe3aae5fd138 Mon Sep 17 00:00:00 2001 From: Rias Date: Tue, 25 Jun 2024 08:46:09 +0200 Subject: [PATCH 2/2] Update stache.md --- content/collections/docs/stache.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/collections/docs/stache.md b/content/collections/docs/stache.md index c6f7af7b5..24cef1acf 100644 --- a/content/collections/docs/stache.md +++ b/content/collections/docs/stache.md @@ -172,7 +172,7 @@ 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 `stache.cache_store` configuration key: +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