Add two new setting options to control the caching of page images.
DOCUMENTS_DISABLE_BASE_IMAGE_CACHE and DOCUMENTS_DISABLE_TRANSFORMED_IMAGE_CACHE. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -73,3 +73,18 @@ setting_language_choices = namespace.add_setting(
|
||||
global_name='DOCUMENTS_LANGUAGE_CHOICES', default=LANGUAGE_CHOICES,
|
||||
help_text=_('List of supported document languages.')
|
||||
)
|
||||
setting_disable_base_image_cache = namespace.add_setting(
|
||||
global_name='DOCUMENTS_DISABLE_BASE_IMAGE_CACHE', default=False,
|
||||
help_text=_(
|
||||
'Disables the first cache tier which stores high resolution, '
|
||||
'non transformed versions of documents\'s pages.'
|
||||
)
|
||||
)
|
||||
setting_disable_transformed_image_cache = namespace.add_setting(
|
||||
global_name='DOCUMENTS_DISABLE_TRANSFORMED_IMAGE_CACHE', default=False,
|
||||
help_text=_(
|
||||
'Disables the second cache tier which stores medium to low '
|
||||
'resolution, transformed (rotated, zoomed, etc) versions '
|
||||
'of documents\' pages.'
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user