mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 08:45:57 +08:00
Merge branch 'add_memcached' of git://github.com/nwalke/BookStack into nwalke-add_memcached
This commit is contained in:
commit
069431db72
|
@ -12,6 +12,9 @@ DB_PASSWORD=database_user_password
|
|||
# Cache and session
|
||||
CACHE_DRIVER=file
|
||||
SESSION_DRIVER=file
|
||||
# If using Memcached, comment the above and uncomment these
|
||||
#CACHE_DRIVER=memcached
|
||||
#SESSION_DRIVER=memcached
|
||||
QUEUE_DRIVER=sync
|
||||
|
||||
# Storage
|
||||
|
@ -54,3 +57,8 @@ MAIL_PORT=1025
|
|||
MAIL_USERNAME=null
|
||||
MAIL_PASSWORD=null
|
||||
MAIL_ENCRYPTION=null
|
||||
|
||||
# Memcached settings
|
||||
#MEMCACHED_HOST=127.0.0.1
|
||||
# If using a UNIX socket path for the host, set the port to 0
|
||||
#MEMCACHED_PORT=11211
|
|
@ -51,7 +51,9 @@ return [
|
|||
'driver' => 'memcached',
|
||||
'servers' => [
|
||||
[
|
||||
'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100,
|
||||
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
|
||||
'port' => env('MEMCACHED_PORT', 11211),
|
||||
'weight' => 100,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue
Block a user