diff options
author | Dan McGee <dan@archlinux.org> | 2013-04-14 13:21:16 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-04-14 13:21:20 -0500 |
commit | f357a39a49a8edc713d512976a0be2a2a8ac5c4f (patch) | |
tree | 03a16a9fcc0390a53514e89551b195276fdd67db /main | |
parent | 213aa3a2fab6f3a56be348a067c132f568efbaff (diff) |
Remove cache_function decorator from a few spots
The benefit of these storage operations might be outweighed by the cost,
especially given how infrequently these functions are called.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r-- | main/models.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/main/models.py b/main/models.py index a561f4f6..89215f05 100644 --- a/main/models.py +++ b/main/models.py @@ -10,7 +10,7 @@ from django.contrib.sites.models import Site from django.utils.timezone import now from .fields import PositiveBigIntegerField -from .utils import cache_function, set_created_field +from .utils import set_created_field from devel.models import DeveloperKey from packages.alpm import AlpmAPI @@ -187,7 +187,6 @@ class Package(models.Model): self._applicable_arches = list(arches) return self._applicable_arches - #@cache_function(119) def get_requiredby(self): """ Returns a list of package objects. An attempt will be made to keep this @@ -265,7 +264,6 @@ class Package(models.Model): trimmed.append(dep) return trimmed - #@cache_function(121) def get_depends(self): """ Returns a list of dicts. Each dict contains ('dep', 'pkg', and @@ -293,7 +291,6 @@ class Package(models.Model): return (sort_order.get(dep.deptype, 1000), dep.name) return sorted(deps, key=sort_key) - #@cache_function(123) def reverse_conflicts(self): """ Returns a list of packages with conflicts against this package. |