diff options
author | Dan McGee <dan@archlinux.org> | 2013-03-11 21:25:27 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-03-11 21:25:27 -0500 |
commit | 1f2a6384f332e75e9befc13b5a4b7b2906db6c50 (patch) | |
tree | 3ec69b4e33de0c36162c04e05e09dfcd20d2a47d /packages/utils.py | |
parent | c8c875b14f28557f1f20b46aaa6b59066ff736ec (diff) |
Remove function caching in packages/utils
We don't see these called enough to make caching the data worth it.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/utils.py')
-rw-r--r-- | packages/utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/utils.py b/packages/utils.py index ef6311eb..a4217fbd 100644 --- a/packages/utils.py +++ b/packages/utils.py @@ -10,7 +10,7 @@ from django.db.models.query import QuerySet from django.contrib.auth.models import User from main.models import Package, PackageFile, Arch, Repo -from main.utils import (cache_function, database_vendor, +from main.utils import (database_vendor, groupby_preserve_order, PackageStandin) from .models import (PackageGroup, PackageRelation, License, Depend, Conflict, Provision, Replacement, @@ -33,7 +33,6 @@ def parse_version(version): return ver, rel, epoch -@cache_function(127) def get_group_info(include_arches=None): raw_groups = PackageGroup.objects.values_list( 'name', 'pkg__arch__name').order_by('name').annotate( @@ -120,7 +119,6 @@ class Difference(object): return hash(self.__key()) -@cache_function(127) def get_differences_info(arch_a, arch_b): # This is a monster. Join packages against itself, looking for packages in # our non-'any' architectures only, and not having a corresponding package |