Skip to content

Commit

Permalink
[Upgrade] Redis support for Magento 2.3+ #208
Browse files Browse the repository at this point in the history
  • Loading branch information
paliarush committed Oct 18, 2018
1 parent c06ace0 commit a34bab4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/guest/configure_cache_backend
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ incompatible_magento_version_pattern='"version": "2.0.[0-5]'
if [[ ${cache_backend} == "redis" ]] && [[ ! ${magento_composer_content} =~ ${incompatible_magento_version_pattern} ]]; then
status "Using Redis backend for caching"
perl -i -p0e "s/\n*\);/${redis_configuration});/smg" "${MAGENTO_ROOT}/app/etc/env.php"
perl -i -p0e "s/\n*\];/${redis_configuration}];/smg" "${MAGENTO_ROOT}/app/etc/env.php"
redis-cli flushall 2> >(logError) > >(log)
else
status "Using file system backend for caching"
Expand Down

0 comments on commit a34bab4

Please sign in to comment.