Skip to content

Commit

Permalink
Merge pull request #13 from sitewards/ADHOC-force-expiry-in-redis-bac…
Browse files Browse the repository at this point in the history
…kend

ADHOC feat redis-cache: force expiry for (almost) all cache entries
  • Loading branch information
skalenji authored Mar 5, 2021
2 parents 1505f33 + 5f23b71 commit ed22a53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ magento_x_frame_options: "SAMEORIGIN"
# database: 1
# password: ""
# compress_data: 1
# auto_expire_lifetime: 604800
# auto_expire_pattern: /^.*/

# magento_cache_frontend_default_backend: Cm_Cache_Backend_Redis

Expand All @@ -242,6 +244,8 @@ magento_x_frame_options: "SAMEORIGIN"
# database: 0
# password: ""
# compress_data: "0"
# auto_expire_lifetime: 604800
# auto_expire_pattern: /^.*/

## The Varnish compatible hosts that are used to store the full page configuration
## This appears to be undocumented, though is set with the CLI initially
Expand Down
4 changes: 4 additions & 0 deletions templates/etc/env.php.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ 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 }}',
'auto_expire_lifetime' => '{{ magento_cache_frontend_default_backend_options.auto_expire_lifetime }}',
'auto_expire_pattern' => '{{ magento_cache_frontend_default_backend_options.auto_expire_pattern }}',
),
),
{% endif %}
Expand All @@ -30,6 +32,8 @@ 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 }}',
'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 }}',
),
),
{% endif %}
Expand Down

0 comments on commit ed22a53

Please sign in to comment.