Permalink
Browse files

use_cache cleanup

  • Loading branch information...
1 parent b0f2f64 commit 696eda20da706b81a629db5ef98419efeeead49d @jacobb committed Apr 4, 2014
Showing with 2 additions and 4 deletions.
  1. +1 −1 nap/cache/django_cache.py
  2. +1 −3 nap/http.py
@@ -14,4 +14,4 @@ def get(self, key):
def set(self, key, value, response=None):
timeout = self.get_timeout(response)
- return cache.set(key, response, timeout)
+ return cache.set(key, value, timeout)
View
@@ -20,9 +20,7 @@ def use_cache(self):
use_cache must be explicitely set to False to bypass the cache.
This is usually done in the engine classes' get_from_cache method
"""
- if self._use_cache is False:
- return False
- return True
+ return self._use_cache is not False
@use_cache.setter
def use_cache(self, val):

0 comments on commit 696eda2

Please sign in to comment.