enable cache backend

This commit is contained in:
j 2018-11-15 10:30:17 +00:00
parent 3e14795d0b
commit f4aa94f848
3 changed files with 11 additions and 0 deletions

View file

@ -170,6 +170,13 @@ LOGGING = {
} }
} }
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'LOCATION': 'cache',
}
}
AUTH_PROFILE_MODULE = 'user.UserProfile' AUTH_PROFILE_MODULE = 'user.UserProfile'
AUTH_CHECK_USERNAME = True AUTH_CHECK_USERNAME = True
FFMPEG = 'ffmpeg' FFMPEG = 'ffmpeg'

View file

@ -10,3 +10,4 @@ requests==2.19.1
tornado<5 tornado<5
geoip2==2.9.0 geoip2==2.9.0
youtube-dl youtube-dl
python-memcached

View file

@ -249,6 +249,9 @@ if __name__ == "__main__":
update_service('pandora-tasks') update_service('pandora-tasks')
if old < 5975: if old < 5975:
run('./bin/pip', 'install', '-r', 'requirements.txt') run('./bin/pip', 'install', '-r', 'requirements.txt')
if old <= 6064:
run('./bin/pip', 'install', '-r', 'requirements.txt')
run('./pandora/manage.py', 'createcachetable')
else: else:
if len(sys.argv) == 1: if len(sys.argv) == 1:
release = get_release() release = get_release()