Skip to content

Commit

Permalink
cached: fix cached functions
Browse files Browse the repository at this point in the history
Co-Authored-by: Peter Weber <[email protected]>
  • Loading branch information
rerowep committed Jan 22, 2025
1 parent 9d7de8c commit 3956dda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rero_ils/modules/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def add_org_lib_doc(item, doc_pid="dummy"):


@cached(
timeout=2 * 60 * 60, key_prefix="doc_item_lofi_schemas", query_string=True
timeout=2 * 60 * 60, key_prefix="doc_item_lofi_schemas", query_string=False
) # 2 hour timeout
def get_doc_item_lofi_schemas():
"""Get document, item, local field schemas."""
Expand Down
2 changes: 1 addition & 1 deletion rero_ils/modules/documents/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@


@cached(
timeout=60 * 60, key_prefix="document_types_from_schema", query_string=True
timeout=60 * 60, key_prefix="document_types_from_schema", query_string=False
) # 1 hour timeout
def get_document_types_from_schema(schema="doc"):
"""Create document type definition from schema."""
Expand Down

0 comments on commit 3956dda

Please sign in to comment.