1
0
Fork 0
forked from github/pelican

Fix warning re: future dates setting. Fixes #3184

This commit is contained in:
Justin Mayer 2023-10-24 11:07:25 +02:00
commit fab6e1a2c5

View file

@ -584,7 +584,7 @@ def configure_settings(settings):
# check content caching layer and warn of incompatibilities
if settings.get('CACHE_CONTENT', False) and \
settings.get('CONTENT_CACHING_LAYER', '') == 'generator' and \
settings.get('WITH_FUTURE_DATES', False):
not settings.get('WITH_FUTURE_DATES', True):
logger.warning(
"WITH_FUTURE_DATES conflicts with CONTENT_CACHING_LAYER "
"set to 'generator', use 'reader' layer instead")