adding cache
This commit is contained in:
parent
1c4021ba8c
commit
a8dbe3b0c5
1 changed files with 11 additions and 0 deletions
|
|
@ -265,3 +265,14 @@ PAYAM_SMS_USERNAME = config('PAYAM_SMS_USERNAME')
|
|||
PAYAM_SMS_PASSWORD = config('PAYAM_SMS_PASSWORD')
|
||||
PAYAM_SMS_CLIENT_ID = config('PAYAM_SMS_CLIENT_ID')
|
||||
PAYAM_SMS_CLIENT_SECRET = config('PAYAM_SMS_CLIENT_SECRET')
|
||||
|
||||
|
||||
CACHES = {
|
||||
"default": {
|
||||
"BACKEND": "django_redis.cache.RedisCache",
|
||||
"LOCATION": config('REDIS_BASE_URL'),
|
||||
"OPTIONS": {
|
||||
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue