aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-06-03 07:29:57 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2009-06-03 07:29:57 +0000
commitaad5a434bbcef76f963d51c6c5204b831cccbdf9 (patch)
tree218d828921101f59f3b69e52633c5769536759ac /web
parentOverride the time arguments elsewhere, expire on every ten minute boundary in... (diff)
downloadpackages-aad5a434bbcef76f963d51c6c5204b831cccbdf9.tar.gz
packages-aad5a434bbcef76f963d51c6c5204b831cccbdf9.tar.bz2
packages-aad5a434bbcef76f963d51c6c5204b831cccbdf9.zip
Remove the old time arguments for memcache usage.
Diffstat (limited to 'web')
-rw-r--r--web/model.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/web/model.py b/web/model.py
index c683247..9266fb9 100644
--- a/web/model.py
+++ b/web/model.py
@@ -166,7 +166,7 @@ class PackageDB(object):
key = '%s' % (caller_name(), )
def f():
return self._get_latest_timestamp()
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
sql['SELECT_get_latest_timestamp'] = """
SELECT mtime
@@ -191,7 +191,7 @@ class PackageDB(object):
key = '%s_%s' % (caller_name(), limit)
def f():
return self._get_latest_cpvs(limit)
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
sql['SELECT_get_latest_cpvs'] = """
SELECT __CPV__, versions.mtime
@@ -228,7 +228,7 @@ class PackageDB(object):
key = '%s_%s' % (caller_name(), limit)
def f():
return self._get_latest_cpvs_by_verbump(limit)
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
sql['SELECT_get_latest_cpvs_by_verbump'] = """
SELECT __CPV__, verbumps.mtime
@@ -269,7 +269,7 @@ class PackageDB(object):
key = '%s_%s' % (caller_name(), limit)
def f():
return self._get_latest_cpvs_by_newpkg(limit)
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
sql['SELECT_get_latest_cpvs_by_newpkg'] = """
SELECT __CPV__, verbumps.mtime
@@ -312,7 +312,7 @@ class PackageDB(object):
key = '%s_%s_%s' % (caller_name(), pkgname, limit)
def f():
return self._get_latest_cpvs_by_pkgname(pkgname, limit)
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
sql['SELECT_get_latest_cpvs_by_pkgname'] = """
SELECT __CPV__, versions.mtime
@@ -345,7 +345,7 @@ class PackageDB(object):
key = '%s_%s_%s' % (caller_name(), cat, limit)
def f():
return self._get_latest_cpvs_by_category(cat, limit)
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
sql['SELECT_get_latest_cpvs_by_category'] = """
SELECT __CPV__, versions.mtime
@@ -378,7 +378,7 @@ class PackageDB(object):
key = '%s_%s/%s_%s' % (caller_name(), cat, pn, limit)
def f():
return self._get_latest_cpvs_by_category_pkgname(cat, pn, limit)
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
sql['SELECT_get_latest_cpvs_by_category_pkgname'] = """
SELECT __CPV__, versions.mtime
@@ -411,7 +411,7 @@ class PackageDB(object):
key = '%s_%s_%s_%s' % (caller_name(), arch, mode, limit)
def f():
return self._get_latest_cpvs_by_arch(arch, mode, limit)
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
sql['SELECT_get_latest_cpvs_by_arch_mode'] = """
SELECT __CPV__, versions.mtime
@@ -468,7 +468,7 @@ class PackageDB(object):
key = '%s_%s' % (caller_name(), str(cpvstr))
def f():
return self._get_package_details_cpv(cpvstr)
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
def _get_package_details_cpv(self, cpvstr):
"""get package details with versionfiltered keywords (uncached)"""
@@ -513,7 +513,7 @@ class PackageDB(object):
key = '%s_%s/%s' % (caller_name(), cat, pn)
def f():
return self._get_package_details(cat, pn)
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
sql['SELECT_get_package_details_metadata'] = """
SELECT license, homepage, description, changelog
@@ -573,7 +573,7 @@ class PackageDB(object):
key = '%s_%s' % (caller_name(), query, )
def f():
return self._get_package_keywords(query)
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
sql['SELECT_get_package_keywords_cat_pn'] = """
SELECT __CPV__, arches.arch, mode
@@ -655,7 +655,7 @@ class PackageDB(object):
key = '%s_%s' % (caller_name(), cat, )
def f():
return self._get_category_packages(cat)
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
sql['SELECT_get_category_packages'] = """
SELECT __CP__, 0
@@ -678,7 +678,7 @@ class PackageDB(object):
key = '%s' % (caller_name(), )
def f():
return self._get_category_list()
- return self.mc_wrap(key, f, time=30)
+ return self.mc_wrap(key, f)
sql['SELECT_get_category_list'] = """
SELECT category, COUNT(DISTINCT cp), COUNT(DISTINCT cpv)