From 1f2a6384f332e75e9befc13b5a4b7b2906db6c50 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 11 Mar 2013 21:25:27 -0500 Subject: 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 --- packages/utils.py | 4 +--- 1 file changed, 1 insertion(+), 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.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 @@ def __hash__(self): 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 -- cgit v1.2.3-54-g00ecf