diff --git a/pandora/settings.py b/pandora/settings.py index a8e59fed..4f24c8fc 100644 --- a/pandora/settings.py +++ b/pandora/settings.py @@ -170,6 +170,13 @@ LOGGING = { } } +CACHES = { + 'default': { + 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', + 'LOCATION': 'cache', + } +} + AUTH_PROFILE_MODULE = 'user.UserProfile' AUTH_CHECK_USERNAME = True FFMPEG = 'ffmpeg' diff --git a/requirements.txt b/requirements.txt index a3936b66..a3b5c98f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,3 +10,4 @@ requests==2.19.1 tornado<5 geoip2==2.9.0 youtube-dl +python-memcached diff --git a/update.py b/update.py index 72ad1db8..e5a41f06 100755 --- a/update.py +++ b/update.py @@ -249,6 +249,9 @@ if __name__ == "__main__": update_service('pandora-tasks') if old < 5975: run('./bin/pip', 'install', '-r', 'requirements.txt') + if old <= 6064: + run('./bin/pip', 'install', '-r', 'requirements.txt') + run('./pandora/manage.py', 'createcachetable') else: if len(sys.argv) == 1: release = get_release()