Skip to content

Commit 3f0df89

Browse files
authored
Merge pull request liangliangyy#412 from hongweipeng/patch-1
默认使用内存缓存
2 parents 941d94e + c70271c commit 3f0df89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DjangoBlog/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def env_to_bool(env, default):
186186
'LOCATION': os.environ.get('DJANGO_MEMCACHED_LOCATION') or '127.0.0.1:11211',
187187
'KEY_PREFIX': 'django_test' if TESTING else 'djangoblog',
188188
'TIMEOUT': 60 * 60 * 10
189-
} if env_to_bool('DJANGO_MEMCACHED_ENABLE', True) else {
189+
} if env_to_bool('DJANGO_MEMCACHED_ENABLE', False) else {
190190
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
191191
'TIMEOUT': 10800,
192192
'LOCATION': 'unique-snowflake',

0 commit comments

Comments
 (0)