Skip to content

Commit

Permalink
ADHOC [feat] add redis compression lib
Browse files Browse the repository at this point in the history
  By default even if compression is enabled nothing will be compressed because the default
  setting for compression library is empty.
  This commit adds a variable to set the compression library so that compression will
  actually work for real
  • Loading branch information
Svetlin Kalendzhiev committed Mar 5, 2021
1 parent ed22a53 commit 449c24b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ magento_x_frame_options: "SAMEORIGIN"
# database: 1
# password: ""
# compress_data: 1
# compression_lib: "gzip"
# auto_expire_lifetime: 604800
# auto_expire_pattern: /^.*/

Expand All @@ -243,7 +244,8 @@ magento_x_frame_options: "SAMEORIGIN"
# port: 6379
# database: 0
# password: ""
# compress_data: "0"
# compress_data: 1
# compression_lib: "gzip"
# auto_expire_lifetime: 604800
# auto_expire_pattern: /^.*/

Expand Down
2 changes: 2 additions & 0 deletions templates/etc/env.php.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ return array (
'database' => '{{ magento_cache_frontend_default_backend_options.database }}',
'password' => '{{ magento_cache_frontend_default_backend_options.password }}',
'compress_data' => '{{ magento_cache_frontend_default_backend_options.compress_data }}',
'compression_lib' => '{{ magento_cache_frontend_default_backend_options.compression_lib }}',
'auto_expire_lifetime' => '{{ magento_cache_frontend_default_backend_options.auto_expire_lifetime }}',
'auto_expire_pattern' => '{{ magento_cache_frontend_default_backend_options.auto_expire_pattern }}',
),
Expand All @@ -32,6 +33,7 @@ return array (
'database' => '{{ magento_cache_frontend_page_cache_backend_options.database }}',
'password' => '{{ magento_cache_frontend_page_cache_backend_options.password }}',
'compress_data' => '{{ magento_cache_frontend_page_cache_backend_options.compress_data }}',
'compression_lib' => '{{ magento_cache_frontend_page_cache_backend_options.compression_lib }}',
'auto_expire_lifetime' => '{{ magento_cache_frontend_page_cache_backend_options.auto_expire_lifetime }}',
'auto_expire_pattern' => '{{ magento_cache_frontend_page_cache_backend_options.auto_expire_pattern }}',
),
Expand Down

0 comments on commit 449c24b

Please sign in to comment.