add: add order list api

This commit is contained in:
behruz-dev
2025-08-29 16:49:56 +05:00
parent 4f45b97aaa
commit 368ec932a6
5 changed files with 56 additions and 4 deletions

View File

@@ -1,3 +1,5 @@
from config.env import env
CACHES = {
"default": {
"BACKEND": 'django_redis.cache.RedisCache',
@@ -19,6 +21,19 @@ CACHEOPS = {
"ops": "all",
"timeout": 60 * 5,
},
'orders.*': {
'ops': 'all',
'timeout': 60 * 5,
},
'products.*': {
'ops': 'all',
'timeout': 60 * 5,
},
'shared.*': {
'ops': 'all',
'timeout': 60 * 5,
}
}
CACHEOPS_DEGRADE_ON_FAILURE = True
CACHEOPS_ENABLED = False
CACHEOPS_ENABLED = env.bool('CACHEOPS_ENABLED', False)