From 9b41c2a5d3e6244035533a5c794a2c8def2477ac Mon Sep 17 00:00:00 2001 From: mprahl Date: Aug 25 2017 12:36:22 +0000 Subject: Remove caching when querying PDC so that Gitolite ACLs are not generated with stale data --- diff --git a/dist_git_auth.py b/dist_git_auth.py index 22d1447..ab44b49 100644 --- a/dist_git_auth.py +++ b/dist_git_auth.py @@ -13,7 +13,6 @@ from __future__ import print_function import logging import os -import dogpile.cache import pdc_client import werkzeug @@ -31,11 +30,6 @@ _NOT_PROVENPACKAGER = ['rpms/firefox', 'rpms/thunderbird', 'rpms/xulrunner'] _log = logging.getLogger(__name__) -cache = dogpile.cache.make_region().configure( - 'dogpile.cache.memory', - expiration_time=600, -) - _blacklist = ''' - f[0-9][0-9] = @all - epel[0-9] = @all @@ -50,7 +44,6 @@ namespace2pdctype = { } -@cache.cache_on_arguments() def get_supported_branches(namespace, package): default_url = 'https://pdc.fedoraproject.org/rest_api/v1/' url = pagure.APP.config.get('PDC_URL', default_url) diff --git a/pagure-dist-git.spec b/pagure-dist-git.spec index 198c2d5..36c8850 100644 --- a/pagure-dist-git.spec +++ b/pagure-dist-git.spec @@ -48,7 +48,6 @@ BuildRequires: %{py_prefix}-devel BuildRequires: %{py_prefix}-setuptools Requires: %{py_prefix}-pdc-client -Requires: %{py_prefix}-dogpile-cache Requires: pagure >= 3.5 %description -n python2-%{modname} @@ -68,7 +67,6 @@ BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: python3-pdc-client -Requires: python3-dogpile-cache Requires: python3-pagure %description -n python3-%{modname} diff --git a/setup.py b/setup.py index a31d29d..7935551 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,6 @@ f.close() install_requires = [ 'pdc_client', - 'dogpile.cache', 'pagure', ] tests_require = [