summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-02-27 08:40:23 -0600
committerDan McGee <dan@archlinux.org>2013-02-27 08:40:23 -0600
commitd5a644696466e443a590317ac2f892ac279665ab (patch)
tree522e396af88c2ee1303c2c4feae8fbedf50c78df /main
parentdd0ecfaeaceb1e1b8a185800de35f0f6e741feac (diff)
Remove caching on reverse_conflicts
We started seeing this in production with memcached usage and the upgrade to Django 1.5: PicklingError: Can't pickle <class 'devel.models.UserProfile_allowed_repos'>: attribute lookup devel.models.UserProfile_allowed_repos failed Without having time to investigate further, something changed, likely due to the whole user profile/configurable user model shenanigans done in Django 1.5. For now, simply don't cache this attribute to work around the problem. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index ec5c2bd6..9410e135 100644
--- a/main/models.py
+++ b/main/models.py
@@ -293,7 +293,7 @@ class Package(models.Model):
return (sort_order.get(dep.deptype, 1000), dep.name)
return sorted(deps, key=sort_key)
- @cache_function(123)
+ #@cache_function(123)
def reverse_conflicts(self):
"""
Returns a list of packages with conflicts against this package.