Magento 2 - Use Redis in Full Page Cache Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Magento on shared hosting and ' Full Page Cache'Magento, Full Page Cache , Memcache and RedisNeed Random product block with Magento Full page cache enableMagento2 change response before full page cacheMagento 2 - full page cacheMagento 2: Varnish + Redis for Full Page Cache at the same time?Full page Cache cannot catch all pagesRedis cache with magento2AWS elasticache (Redis) for the Magento page and default cacheHow can I get the customer ID in a cached block when full page cache is enabled?

Why aren't these two solutions equivalent? Combinatorics problem

How to mute a string and play another at the same time

Why is one lightbulb in a string illuminated?

Determine the generator of an ideal of ring of integers

Coin Game with infinite paradox

Is Bran literally the world's memory?

Why do people think Winterfell crypts is the safest place for women, children & old people?

Has a Nobel Peace laureate ever been accused of war crimes?

Can gravitational waves pass through a black hole?

How is an IPA symbol that lacks a name (e.g. ɲ) called?

What helicopter has the most rotor blades?

Why does my GNOME settings mention "Moto C Plus"?

"Destructive force" carried by a B-52?

Is my guitar’s action too high?

Lights are flickering on and off after accidentally bumping into light switch

How to ask rejected full-time candidates to apply to teach individual courses?

Why does BitLocker not use RSA?

When speaking, how do you change your mind mid-sentence?

Why not use the yoke to control yaw, as well as pitch and roll?

What is the definining line between a helicopter and a drone a person can ride in?

Should man-made satellites feature an intelligent inverted "cow catcher"?

What's the difference between using dependency injection with a container and using a service locator?

Protagonist's race is hidden - should I reveal it?

Who can become a wight?



Magento 2 - Use Redis in Full Page Cache



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Magento on shared hosting and ' Full Page Cache'Magento, Full Page Cache , Memcache and RedisNeed Random product block with Magento Full page cache enableMagento2 change response before full page cacheMagento 2 - full page cacheMagento 2: Varnish + Redis for Full Page Cache at the same time?Full page Cache cannot catch all pagesRedis cache with magento2AWS elasticache (Redis) for the Magento page and default cacheHow can I get the customer ID in a cached block when full page cache is enabled?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I check similar question but I am unable to find command to add Redis server for full page cache.



The command to add Redis for backend cache is following:



php bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=xxxxxxxx --cache-backend-redis-db=0


I want to use Redis for Full Page Cache what would be the command to do this?










share|improve this question
























  • Please pay attention the Redis can be used only for build in FPC, that do not recommended to use in production.

    – KAndy
    2 days ago











  • Then why it is defined in devdocs? And why my website's performance is much better after applying it?

    – Shoaib Munir
    yesterday











  • I am using Redis from AWS elasticache

    – Shoaib Munir
    yesterday

















1















I check similar question but I am unable to find command to add Redis server for full page cache.



The command to add Redis for backend cache is following:



php bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=xxxxxxxx --cache-backend-redis-db=0


I want to use Redis for Full Page Cache what would be the command to do this?










share|improve this question
























  • Please pay attention the Redis can be used only for build in FPC, that do not recommended to use in production.

    – KAndy
    2 days ago











  • Then why it is defined in devdocs? And why my website's performance is much better after applying it?

    – Shoaib Munir
    yesterday











  • I am using Redis from AWS elasticache

    – Shoaib Munir
    yesterday













1












1








1








I check similar question but I am unable to find command to add Redis server for full page cache.



The command to add Redis for backend cache is following:



php bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=xxxxxxxx --cache-backend-redis-db=0


I want to use Redis for Full Page Cache what would be the command to do this?










share|improve this question
















I check similar question but I am unable to find command to add Redis server for full page cache.



The command to add Redis for backend cache is following:



php bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=xxxxxxxx --cache-backend-redis-db=0


I want to use Redis for Full Page Cache what would be the command to do this?







magento2 full-page-cache






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 18 at 11:36









Muhammad Anas

7651321




7651321










asked Apr 18 at 10:56









Shoaib MunirShoaib Munir

2,61021031




2,61021031












  • Please pay attention the Redis can be used only for build in FPC, that do not recommended to use in production.

    – KAndy
    2 days ago











  • Then why it is defined in devdocs? And why my website's performance is much better after applying it?

    – Shoaib Munir
    yesterday











  • I am using Redis from AWS elasticache

    – Shoaib Munir
    yesterday

















  • Please pay attention the Redis can be used only for build in FPC, that do not recommended to use in production.

    – KAndy
    2 days ago











  • Then why it is defined in devdocs? And why my website's performance is much better after applying it?

    – Shoaib Munir
    yesterday











  • I am using Redis from AWS elasticache

    – Shoaib Munir
    yesterday
















Please pay attention the Redis can be used only for build in FPC, that do not recommended to use in production.

– KAndy
2 days ago





Please pay attention the Redis can be used only for build in FPC, that do not recommended to use in production.

– KAndy
2 days ago













Then why it is defined in devdocs? And why my website's performance is much better after applying it?

– Shoaib Munir
yesterday





Then why it is defined in devdocs? And why my website's performance is much better after applying it?

– Shoaib Munir
yesterday













I am using Redis from AWS elasticache

– Shoaib Munir
yesterday





I am using Redis from AWS elasticache

– Shoaib Munir
yesterday










1 Answer
1






active

oldest

votes


















0














I found the solution.



For Backend cache on Redis, use below sample command



php bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=xxxxxxxxxxx --cache-backend-redis-db=0


For Page Cache on Redis, use below sample command



php bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=xxxxxxxxxxx --page-cache-redis-db=1


Both cache could be save on same redis server but it will use different databases 0 and 1



Note: For local redis cache, use 127.0.0.1






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270642%2fmagento-2-use-redis-in-full-page-cache%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I found the solution.



    For Backend cache on Redis, use below sample command



    php bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=xxxxxxxxxxx --cache-backend-redis-db=0


    For Page Cache on Redis, use below sample command



    php bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=xxxxxxxxxxx --page-cache-redis-db=1


    Both cache could be save on same redis server but it will use different databases 0 and 1



    Note: For local redis cache, use 127.0.0.1






    share|improve this answer



























      0














      I found the solution.



      For Backend cache on Redis, use below sample command



      php bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=xxxxxxxxxxx --cache-backend-redis-db=0


      For Page Cache on Redis, use below sample command



      php bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=xxxxxxxxxxx --page-cache-redis-db=1


      Both cache could be save on same redis server but it will use different databases 0 and 1



      Note: For local redis cache, use 127.0.0.1






      share|improve this answer

























        0












        0








        0







        I found the solution.



        For Backend cache on Redis, use below sample command



        php bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=xxxxxxxxxxx --cache-backend-redis-db=0


        For Page Cache on Redis, use below sample command



        php bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=xxxxxxxxxxx --page-cache-redis-db=1


        Both cache could be save on same redis server but it will use different databases 0 and 1



        Note: For local redis cache, use 127.0.0.1






        share|improve this answer













        I found the solution.



        For Backend cache on Redis, use below sample command



        php bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=xxxxxxxxxxx --cache-backend-redis-db=0


        For Page Cache on Redis, use below sample command



        php bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=xxxxxxxxxxx --page-cache-redis-db=1


        Both cache could be save on same redis server but it will use different databases 0 and 1



        Note: For local redis cache, use 127.0.0.1







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 19 at 5:07









        Shoaib MunirShoaib Munir

        2,61021031




        2,61021031



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270642%2fmagento-2-use-redis-in-full-page-cache%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Sum ergo cogito? 1 nng

            419 nièngy_Soadمي 19bal1.5o_g

            Queiggey Chernihivv 9NnOo i Zw X QqKk LpB