Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4e5dd156
authored
Aug 01, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
circle: fix cache config
parent
7026a4bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
circle/circle/settings/production.py
+7
-13
No files found.
circle/circle/settings/production.py
View file @
4e5dd156
...
@@ -70,20 +70,14 @@ SERVER_EMAIL = EMAIL_HOST_USER
...
@@ -70,20 +70,14 @@ SERVER_EMAIL = EMAIL_HOST_USER
########## CACHE CONFIGURATION
########## CACHE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
# See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
try
:
from
urlparse
import
urlsplit
CACHES
=
{
'default'
:
{
CACHES
=
{
'BACKEND'
:
'django.core.cache.backends.memcached.MemcachedCache'
,
'default'
:
{
'LOCATION'
:
get_env_variable
(
'DJANGO_MEMCACHED'
),
'BACKEND'
:
'django.core.cache.backends.memcached.MemcachedCache'
,
}
'LOCATION'
:
urlsplit
(
get_env_variable
(
'CACHE_URI'
))
.
netloc
,
}
except
ImproperlyConfigured
:
CACHES
=
{
'default'
:
{
'BACKEND'
:
'django.core.cache.backends.locmem.LocMemCache'
,
'LOCATION'
:
SITE_NAME
,
}
}
}
}
########## END CACHE CONFIGURATION
########## END CACHE CONFIGURATION
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment