cache not expired be defaut
This commit is contained in:
@ -85,7 +85,7 @@ validator
|
||||
warnings
|
||||
display warnings during validation
|
||||
"""
|
||||
default_properties = ('cache', 'expire', 'validator', 'warnings')
|
||||
default_properties = ('cache', 'validator', 'warnings')
|
||||
|
||||
"""Config can be in two defaut mode:
|
||||
|
||||
|
@ -118,9 +118,7 @@ class Values(object):
|
||||
config_bag=config_bag)
|
||||
# store value in cache
|
||||
if not is_cached and \
|
||||
setting_properties and 'cache' in setting_properties and \
|
||||
config_bag.validate and config_bag.force_permissive is False and \
|
||||
config_bag.trusted_cached_properties is True:
|
||||
setting_properties and 'cache' in setting_properties:
|
||||
if 'expire' in setting_properties:
|
||||
if ntime is None:
|
||||
ntime = int(time())
|
||||
|
Reference in New Issue
Block a user