Merge pull request #1777 from coolo/dont_cache_attributes

Reduce cache time of attributes
This commit is contained in:
Stephan Kulow 2018-11-10 11:13:24 +01:00 committed by GitHub
commit 2a9183f2b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ class Cache(object):
r'/source/([^/]+)/_meta$': TTL_LONG,
r'/source/([^/]+)/(?:[^/]+)/(?:_meta|_link)$': TTL_LONG,
r'/source/([^/]+)/dashboard/[^/]+': TTL_LONG,
r'/source/([^/]+)/_attribute/[^/]+': TTL_MEDIUM,
r'/source/([^/]+)/_attribute/[^/]+': TTL_DUPLICATE,
# Handles clearing local cache on package deletes. Lots of queries like
# updating project info, comment, and package additions.
r'/source/([^/]+)/(?:[^/?]+)(?:\?[^/]+)?$': TTL_LONG,