Skip to content

Commit b9fdb68

Browse files
alexjustesengitbook-bot
authored andcommitted
GITBOOK-47: change request with no subject merged in GitBook
1 parent a2d30a4 commit b9fdb68

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
## 👀 Other
3131

32+
* [Caching](other/caching.md)
3233
* [Commands](other/commands.md)
3334

3435
## 🖥 API

other/caching.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
description: >-
3+
Speedtest Tracker supports multiple cache drivers, use the docs below to setup
4+
your preferred handler.
5+
---
6+
7+
# Caching
8+
9+
## Drivers
10+
11+
You can change your cache driver by setting the environment variable in your configuration file. To change the default driver pass `CACHE_DRIVER` as an environment variable.
12+
13+
### File (default)
14+
15+
{% hint style="info" %}
16+
`v0.13.1` contains a change to `file` as the default driver to improve performance.
17+
{% endhint %}
18+
19+
This is the default cache driver and fine in most use cases, especially if the container runs on the same host system.
20+
21+
### Database
22+
23+
Using the database cache driver can be used if you're running multiple instances and want to share the cache. 
24+
25+
Change `CACHE_DRIVER` to `database` in your environment variables.
26+
27+
### Redis
28+
29+
Using Redis cache driver can also be used if you're running multiple instances or don't want to use the container's file system as the cache. 
30+
31+
Change `CACHE_DRIVER` to `redis` in your environment variables.

0 commit comments

Comments
 (0)