Kill johnny
parent
768e61f8bf
commit
3da5aa017a
|
@ -1,8 +1,7 @@
|
|||
.gunicorn.pid
|
||||
.nginx.log
|
||||
*.log
|
||||
.sass-cache
|
||||
*.un~
|
||||
|
||||
*.pgdump
|
||||
*.pyc
|
||||
|
||||
|
|
|
@ -28,4 +28,3 @@ Werkzeug
|
|||
git+https://github.com/toastdriven/django-haystack.git@master#egg=django-haystack
|
||||
hg+https://bitbucket.org/ubernostrum/django-registration#egg=django-registration
|
||||
git+https://github.com/toastdriven/django-tastypie.git#egg=django-tastypie
|
||||
hg+https://bitbucket.org/jmoiron/johnny-cache#egg=johnny_cache-dev
|
||||
|
|
14
settings.py
14
settings.py
|
@ -216,20 +216,6 @@ ABSOLUTE_URL_OVERRIDES = {
|
|||
}
|
||||
|
||||
# Caching
|
||||
if not DEBUG:
|
||||
INSTALLED_APPS += ('johnny',)
|
||||
JOHNNY_MIDDLEWARE_KEY_PREFIX='johnny_snipt'
|
||||
MIDDLEWARE_CLASSES += (
|
||||
'johnny.middleware.LocalStoreClearMiddleware',
|
||||
'johnny.middleware.QueryCacheMiddleware',
|
||||
)
|
||||
CACHES = {
|
||||
'default': dict(
|
||||
BACKEND = 'johnny.backends.memcached.MemcachedCache',
|
||||
LOCATION = ['127.0.0.1:11211'],
|
||||
JOHNNY_CACHE = True,
|
||||
)
|
||||
}
|
||||
|
||||
# CSS / JS Compression
|
||||
COMPRESS_OUTPUT_DIR = 'cache'
|
||||
|
|
Loading…
Reference in New Issue