From 3fbe844985a00aee1450fd7235ba61bcf293623b Mon Sep 17 00:00:00 2001 From: John Martin Date: Tue, 1 Oct 2013 11:22:52 +0100 Subject: [PATCH] [#1126] Removed because it's not used --- ckanext/homepage/plugin.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ckanext/homepage/plugin.py b/ckanext/homepage/plugin.py index b934f505302..d9a79b48a2c 100644 --- a/ckanext/homepage/plugin.py +++ b/ckanext/homepage/plugin.py @@ -10,9 +10,6 @@ class HomepagePlugin(p.SingletonPlugin): p.implements(p.ITemplateHelpers, inherit=True) p.implements(p.IConfigurable, inherit=True) - featured_groups_cache = None - featured_orgs_cache = None - def configure(self, config): groups = config.get('ckan.featured_groups', '') if groups: @@ -29,16 +26,14 @@ def get_featured_organizations(self, count=1): list_action='organization_list', count=count, items=self.orgs) - self.featured_orgs_cache = orgs - return self.featured_orgs_cache + return orgs def get_featured_groups(self, count=1): groups = self.featured_group_org(get_action='group_show', list_action='group_list', count=count, items=self.groups) - self.featured_groups_cache = groups - return self.featured_groups_cache + return groups def featured_group_org(self, items, get_action, list_action, count): def get_group(id):