Skip to content

Commit 6529a74

Browse files
committed
Adding Database caching info to the docs
1 parent bf9e3a1 commit 6529a74

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

docs/general/system-configuration-overrides.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ Specify a different [caching driver](optimization/caching.md#caching-drivers) to
511511
| Values | Description |
512512
| --------- | -------------------------------------------------- |
513513
| file | File driver, /system/user/cache/ (default) |
514+
| database | Database driver, uses the DB for caching |
514515
| memcached | Memcached driver, configured with memcached config |
515516
| redis | Redis driver, configured with redis config |
516517
| dummy | Dummy driver, will not cache |
@@ -1202,7 +1203,7 @@ Example Usage:
12021203

12031204
### `enable_entry_cloning`
12041205

1205-
When set to `n`, disables "Clone to New Entry" option and entry cloning globally.
1206+
When set to `n`, disables "Clone to New Entry" option and entry cloning globally.
12061207

12071208
| Value | Behavior |
12081209
| ----- | ---------------------------------------------- |
@@ -1423,7 +1424,7 @@ Example Usage:
14231424

14241425
### `favicon`
14251426

1426-
URL to file used as favicon in Control Panel.
1427+
URL to file used as favicon in Control Panel.
14271428

14281429
Example Usage:
14291430

@@ -3040,7 +3041,7 @@ Stream encryption method, when using TLS for sending emails over SMTP.
30403041
| STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | TLS v1.2 (default) |
30413042
| STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT | TLS v1.3 (as of PHP 7.4.0) |
30423043

3043-
3044+
30443045
Example Usage:
30453046

30463047
$config['tls_crypto_method'] = STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT;

docs/optimization/caching.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ By default, ExpressionEngine uses a file-based caching driver, meaning cached it
9393

9494
ExpressionEngine currently supports Memcached and Redis for memory-based caching. You can set which driver is being used in the control panel or via the [cache_driver](general/system-configuration-overrides.md#cache_driver) config override. [Memcached](general/system-configuration-overrides.md#memcached) and [Redis](general/system-configuration-overrides.md#redis) server information can also be set in `config.php`, otherwise ExpressionEngine will try to connect to the default respective ports on localhost.
9595

96+
You can also set caching to Database, which uses the same database for cache data as the rest of your site data. There are pros and cons to this approach. If you can't easily use memcached or redis, database caching can be another way to use RAM-based caching; on the other hand, this can create additional database read and write calls that can be slower than file or memory-based caching choices. Database works well in load balanced environments, where memcache and redis are more difficult to work with due to the difficulty in synchronizing across servers. Test out database caching performance and compare your specific results before committing to it.
97+
9698
A [backup driver](general/system-configuration-overrides.md#cache_driver_backup) can also be specified in the case your primary driver is unavailable. By default, the backup driver is the file driver and it's likely the best failover option due to its reliability, but the backup driver is configurable.
9799

98100
Add-on developers can find more information about using caching drivers to store and retrieve items in the [Cache Class](development/legacy/libraries/cache.md) documentation.

0 commit comments

Comments
 (0)