[freeipa PR#6049][opened] Make the schema cache TTL user-configurable
by rcritten
URL: https://github.com/freeipa/freeipa/pull/6049
Author: rcritten
Title: #6049: Make the schema cache TTL user-configurable
Action: opened
PR body:
"""
The API schema is not checked for changes until after a TTL
is expired. A one-hour TTL was hardcoded which makes development
tedious because the only way to force a schema update is to
remember to remove files between invocations.
This adds a new environment variable, schema_ttl, to configure
the TTL returned by the server to schema() calls. This can be
set low to ensure a frequent refresh during development.
If the client is in compat mode, that is if client is working
against a server that doesn't support the schema() command,
then use the client's schema_ttl instead so that the user still
has control.
https://pagure.io/freeipa/issue/8492
Signed-off-by: Rob Crittenden <rcritten(a)redhat.com>
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/6049/head:pr6049
git checkout pr6049
2 years, 5 months