From a2bbf3b87114cd4fe037629dac225132e27088d4 Mon Sep 17 00:00:00 2001 From: Peter Weber Date: Wed, 22 Jan 2025 20:05:53 +0100 Subject: [PATCH] cached: fix cached functions Co-Authored-by: Peter Weber --- rero_ils/modules/cli/utils.py | 2 +- rero_ils/modules/documents/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rero_ils/modules/cli/utils.py b/rero_ils/modules/cli/utils.py index 0e6d0cdba8..b4ead57018 100644 --- a/rero_ils/modules/cli/utils.py +++ b/rero_ils/modules/cli/utils.py @@ -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.""" diff --git a/rero_ils/modules/documents/utils.py b/rero_ils/modules/documents/utils.py index 2f431f66e2..a332d2ddf3 100644 --- a/rero_ils/modules/documents/utils.py +++ b/rero_ils/modules/documents/utils.py @@ -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."""