From 72bf022aff3841fa4b48aa8f0e6bb73341343510 Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Tue, 13 May 2014 10:36:42 -0400 Subject: [PATCH] Stop using memcached --- fabfile.py | 2 -- karmaworld/apps/courses/views.py | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/fabfile.py b/fabfile.py index 7bee315..eca1e83 100644 --- a/fabfile.py +++ b/fabfile.py @@ -302,7 +302,6 @@ def first_deploy(): collect_static() fetch_usde() import_usde() - flush_memcache() start_supervisord() print "You should run `manage.py createsuperuser` in the virtual environment" @@ -317,6 +316,5 @@ def deploy(): syncdb() compress_static() collect_static() - flush_memcache() restart_supervisord() ########## END COMMANDS diff --git a/karmaworld/apps/courses/views.py b/karmaworld/apps/courses/views.py index 260caf8..ecdf9b4 100644 --- a/karmaworld/apps/courses/views.py +++ b/karmaworld/apps/courses/views.py @@ -42,11 +42,7 @@ class CourseListView(View): """ def get(self, request, *args, **kwargs): - if request.user.is_authenticated(): - return CourseListSubView.as_view()(request, *args, **kwargs) - # Cache the homepage for non-authenicated users - else: - return cache_page(CourseListSubView.as_view(), 60 * 60)(request, *args, **kwargs) + return CourseListSubView.as_view()(request, *args, **kwargs) def post(self, request, *args, **kwargs): ret = CourseAddFormView.as_view()(request, *args, **kwargs) -- 2.25.1