Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SOaAS
dbxref
Commits
95aadf02
Commit
95aadf02
authored
Apr 24, 2019
by
Lukas Jelonek
Browse files
Fix bug: expiration time to low
parent
730fd9f0
Changes
1
Show whitespace changes
Inline
Side-by-side
dbxref/retriever.py
View file @
95aadf02
...
@@ -73,7 +73,7 @@ def cache_entries(cache, entries):
...
@@ -73,7 +73,7 @@ def cache_entries(cache, entries):
expiration_time
=
86400
# one day
expiration_time
=
86400
# one day
for
e
in
entries
:
for
e
in
entries
:
logger
.
debug
(
'Caching {}'
.
format
(
e
[
'id'
]))
logger
.
debug
(
'Caching {}'
.
format
(
e
[
'id'
]))
cache
.
set
(
e
[
'id'
],
e
,
expire
=
30
)
cache
.
set
(
e
[
'id'
],
e
,
expire
=
expiration_time
)
def
find_cached_entries
(
cache
,
dbxrefs
):
def
find_cached_entries
(
cache
,
dbxrefs
):
cached
=
[]
cached
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment