mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-30 04:19:13 +01:00
Feat: control file reference cache
This commit is contained in:
parent
66c9dbd08a
commit
24ebeed9ec
@ -51,6 +51,8 @@ DB_IDLE_TIMEOUT=60
|
|||||||
DB_CACHE_TTL="+5 minutes"
|
DB_CACHE_TTL="+5 minutes"
|
||||||
# Enable to add cache info about users to database. Disable if you only read data from channels.
|
# Enable to add cache info about users to database. Disable if you only read data from channels.
|
||||||
DB_ENABLE_MIN_DATABASE=0
|
DB_ENABLE_MIN_DATABASE=0
|
||||||
|
# Enable file metadata cache
|
||||||
|
DB_ENABLE_FILE_REFERENCE_DATABASE=0
|
||||||
|
|
||||||
# HEALTHCHECK
|
# HEALTHCHECK
|
||||||
# If server stops responding to requests it will be stoped
|
# If server stops responding to requests it will be stoped
|
||||||
|
@ -50,6 +50,8 @@ DB_IDLE_TIMEOUT=60
|
|||||||
DB_CACHE_TTL="+5 minutes"
|
DB_CACHE_TTL="+5 minutes"
|
||||||
# Enable to add cache info about users to database. Disable if you only read data from channels.
|
# Enable to add cache info about users to database. Disable if you only read data from channels.
|
||||||
DB_ENABLE_MIN_DATABASE=0
|
DB_ENABLE_MIN_DATABASE=0
|
||||||
|
# Enable file metadata cache
|
||||||
|
DB_ENABLE_FILE_REFERENCE_DATABASE=0
|
||||||
|
|
||||||
# HEALTHCHECK
|
# HEALTHCHECK
|
||||||
# If server stops responding to requests it will be stoped
|
# If server stops responding to requests it will be stoped
|
||||||
|
@ -30,6 +30,7 @@ $settings = [
|
|||||||
],
|
],
|
||||||
'db' => [
|
'db' => [
|
||||||
'enable_min_db' => (bool)filter_var((string)getenv('DB_ENABLE_MIN_DATABASE'), FILTER_VALIDATE_BOOL),
|
'enable_min_db' => (bool)filter_var((string)getenv('DB_ENABLE_MIN_DATABASE'), FILTER_VALIDATE_BOOL),
|
||||||
|
'enable_file_reference_db' => (bool)filter_var((string)getenv('DB_ENABLE_FILE_REFERENCE_DATABASE'), FILTER_VALIDATE_BOOL),
|
||||||
'type' => (string)getenv('DB_TYPE'),
|
'type' => (string)getenv('DB_TYPE'),
|
||||||
getenv('DB_TYPE') => [
|
getenv('DB_TYPE') => [
|
||||||
'uri' => 'tcp://' . getenv('DB_HOST') . ':' . (int)getenv('DB_PORT'),
|
'uri' => 'tcp://' . getenv('DB_HOST') . ':' . (int)getenv('DB_PORT'),
|
||||||
|
Loading…
Reference in New Issue
Block a user