0

I am comparing one of the website's redis config in env.php.

This is what they have:

'cache' => [
    'frontend' => [
        'default' => [
            'id_prefix' => 'abe_',
            'backend' => 'Cm_Cache_Backend_Redis',
            'backend_options' => [
                'server' => '127.0.0.1',
                'database' => '0',
                'port' => '6379',
                'password' => '', ===>> extra line----
                'compress_data' => '1', ===>> extra line----
                'compression_lib' => '' ===>> extra line-----
            ]
        ],
        'page_cache' => [
            'id_prefix' => 'abe_',
            'backend' => 'Cm_Cache_Backend_Redis',
            'backend_options' => [
                'server' => '127.0.0.1',
                'database' => '1',
                'port' => '6379',
                'password' => '', ===>> extra line----
                'compress_data' => '0',
                'compression_lib' => '' ===>> extra line-----
            ]
        ]
    ]
],

And when I check magento doc, I see this:

'cache' => [
    'frontend' => [
        'default' => [
            'backend' => 'Cm_Cache_Backend_Redis',
            'backend_options' => [
                'server' => '127.0.0.1',
                'database' => '0',
                'port' => '6379'
            ],
        ],
        'page_cache' => [
            'backend' => 'Cm_Cache_Backend_Redis',
            'backend_options' => [
                'server' => '127.0.0.1',
                'port' => '6379',
                'database' => '1',
                'compress_data' => '0'
            ]
        ]
    ]
],

What are those extra lines? Will they benifit the site? OR should I remove them?

Any suggestion?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.