Skip to content

Commit f35f0f4

Browse files
authored
Merge pull request #1100 from nep/database-cache-docs
Adding Database caching info to the docs
2 parents b289900 + 6529a74 commit f35f0f4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/general/system-configuration-overrides.md

Lines changed: 1 addition & 0 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 |

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)