Skip to content

Commit f2a7f59

Browse files
author
liangliangyy
committed
修改缓存配置
1 parent b86eb37 commit f2a7f59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DjangoBlog/settings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@
179179
# cache setting
180180

181181
CACHES = {
182-
'default1': {
182+
'default': {
183183
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
184184
'LOCATION': '127.0.0.1:11211',
185185
},
186-
'default': {
186+
'locmemcache': {
187187
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
188188
'LOCATION': 'unique-snowflake',
189189
}

0 commit comments

Comments
 (0)