Magento2 which command Run and when to RunMagento 2: What is difference between Cache Clean & Cache Flush?setup:static-content:deploy need to run for minor php changes?When to run following commands in magento2?Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?How to customize css in pub/static folder. Automatically update old css in magento 2Exception Error: Element 'body': This element is not expectedMagento 2: Magento UI is not working properly. After deleting all productsWhen using Magento 2 the admin panel buttons are un-responsiveCan Anyone explain in details that how magento2 cache working?When I run CLI commands in magento 2.2

The English Debate

Weird lines in Microsoft Word

Nested Dynamic SOQL Query

Air travel with refrigerated insulin

Have any astronauts/cosmonauts died in space?

Animating wave motion in water

How to determine the greatest d orbital splitting?

Why doesn't the fusion process of the sun speed up?

Could any one tell what PN is this Chip? Thanks~

Determine voltage drop over 10G resistors with cheap multimeter

Why are there no stars visible in cislunar space?

is this saw blade faulty?

What is it called when someone votes for an option that's not their first choice?

Can other pieces capture a threatening piece and prevent a checkmate?

How to find the largest number(s) in a list of elements, possibly non-unique?

What favor did Moody owe Dumbledore?

PTIJ: Which Dr. Seuss books should one obtain?

Is VPN a layer 3 concept?

When did hardware antialiasing start being available?

Why is "la Gestapo" feminine?

Can "few" be used as a subject? If so, what is the rule?

label a part of commutative diagram

Why is indicated airspeed rather than ground speed used during the takeoff roll?

Do I need an EFI partition for each 18.04 ubuntu I have on my HD?



Magento2 which command Run and when to Run


Magento 2: What is difference between Cache Clean & Cache Flush?setup:static-content:deploy need to run for minor php changes?When to run following commands in magento2?Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?How to customize css in pub/static folder. Automatically update old css in magento 2Exception Error: Element 'body': This element is not expectedMagento 2: Magento UI is not working properly. After deleting all productsWhen using Magento 2 the admin panel buttons are un-responsiveCan Anyone explain in details that how magento2 cache working?When I run CLI commands in magento 2.2













1















Kindly Clear Difference Between php bin/magento cache:flush and cache:clean and when they need to Run . which tasks Output to need cache:flush or clean ** and which task need these Commands => **di:compile,setup:upgrade,setup:static-content:deploy



I consume 4 to 5 min to run cache:flush,upgrade and deploy.










share|improve this question



















  • 1





    You can find the awnser in this thread: magento.stackexchange.com/questions/138155/…

    – Stijn CompactCode
    Feb 26 at 17:10















1















Kindly Clear Difference Between php bin/magento cache:flush and cache:clean and when they need to Run . which tasks Output to need cache:flush or clean ** and which task need these Commands => **di:compile,setup:upgrade,setup:static-content:deploy



I consume 4 to 5 min to run cache:flush,upgrade and deploy.










share|improve this question



















  • 1





    You can find the awnser in this thread: magento.stackexchange.com/questions/138155/…

    – Stijn CompactCode
    Feb 26 at 17:10













1












1








1








Kindly Clear Difference Between php bin/magento cache:flush and cache:clean and when they need to Run . which tasks Output to need cache:flush or clean ** and which task need these Commands => **di:compile,setup:upgrade,setup:static-content:deploy



I consume 4 to 5 min to run cache:flush,upgrade and deploy.










share|improve this question
















Kindly Clear Difference Between php bin/magento cache:flush and cache:clean and when they need to Run . which tasks Output to need cache:flush or clean ** and which task need these Commands => **di:compile,setup:upgrade,setup:static-content:deploy



I consume 4 to 5 min to run cache:flush,upgrade and deploy.







magento2 cache cli setup-di-compile dicompilation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 20 mins ago









Shoaib Munir

2,1101828




2,1101828










asked Feb 26 at 17:08









HaFiz UmerHaFiz Umer

3339




3339







  • 1





    You can find the awnser in this thread: magento.stackexchange.com/questions/138155/…

    – Stijn CompactCode
    Feb 26 at 17:10












  • 1





    You can find the awnser in this thread: magento.stackexchange.com/questions/138155/…

    – Stijn CompactCode
    Feb 26 at 17:10







1




1





You can find the awnser in this thread: magento.stackexchange.com/questions/138155/…

– Stijn CompactCode
Feb 26 at 17:10





You can find the awnser in this thread: magento.stackexchange.com/questions/138155/…

– Stijn CompactCode
Feb 26 at 17:10










3 Answers
3






active

oldest

votes


















1














Although question have already been answered and accepted as well, but i thought it would be nice to compile all points in single answer for better understanding and for other users who are searching for such understanding:



So we will go part by part of question(s):



Question Part A :




Kindly Clear Difference Between php bin/magento cache:flush and cache:clean




as @Shoib Answers, cache:flush destroys the cache storage and build cache again where as cache:clean cleans the cache and doesn't destroy the storage.



Question Part B :




which tasks Output to need cache:flush or clean




when to Cache Clean ?



When you make any change in template, layout or configurations , only clean cache, you should avoid cache:flush in any case. 90% your frontend , configuration issues will be solved by cache:clean.



HINT :
During frontend theme development, you can enable all caches just disable full_page cache, this will save you lot of time and in development, you just need to run cache:clean command.



When to Cache Flush ?



Cache flush only and only , if your desired changes not worked as expected after cache:clean command.



Question Part C :




which task need these Commands => **di:compile,setup:upgrade,setup:static-content:deploy




In part c of your question, you mentioned commands like :



1 - **di:compile** , 2 - **setup:upgrade** , 3 - **setup:static-content:deploy**



Let's re-order these as per usage and recommendation of commands :



  • 1 - setup:upgrade


  • 2 - di:compile


  • 3 - setup:static-content:deploy


1 - setup:upgrade :



When you add new module you should run this command this command will add your module entry in setup_module table and also in config.php file. As it updates the Database schema.



2 - setup:di:compile



This command is used to create factories, proxies, interceptors etc :



  • Application code generation (factories, proxies, and so on)

  • Area configuration aggregation (that is, optimized dependency injection configurations per area)

  • Interceptor generation (that is, optimized code generation of interceptors)

  • Interception cache generation

  • Repositories code generation (that is, generated code for APIs)

  • Service data attributes generation (that is, generated extension classes for data objects)

in short run this command when you make any change in your module classes files, constructor etc and generates the contents of the var/di folder in Magento <2.2 and generated for Magento >= 2.2.
Refer to Magento Dev Docs for complete detail



3 - setup:static-content:deploy



Run this command when you are developing / making changes in your theme LESS or other JS / static files. Static view files are located in the /pub/static directory, and some are cached in the /var/view_preprocessed directory as well.



For more details about static content refer to Magento Dev Docs here and you can also read in which mode you should run which command.



Note :



If you make any change in template or layout file, php bin/magento cache:clean command will work for you , you don't need to deploy static content.



Hope this will help to understand mechanism.






share|improve this answer






























    3














    Cleaning a cache type deletes all items from enabled Magento cache types only. In other words, this option does not affect other processes or applications because it cleans only the cache that Magento uses.



    Flushing a cache type purges the cache storage, which might affect other processes applications that are using the same storage.



    In short: Clean is a soft way of cleaning cache whereas flush is the hard flush of cache storage.



    Reference: https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cache.html



    Magento 2: What is difference between Cache Clean & Cache Flush?






    share|improve this answer

























    • what mean of which might affect other processes applications that are using the same storage ? which other process ?

      – HaFiz Umer
      Feb 27 at 6:52






    • 1





      Like third-party developers can put any data in any segment of the cache. They can use your cache storage. So, when you clean, it will not effect anything, whereas if you flush cache it will also flush third party module's cache. Then that module will regenerate cache in cache storage

      – Shoaib Munir
      Feb 27 at 7:01











    • yes clean ! third-pary modules .

      – HaFiz Umer
      Feb 27 at 7:03











    • when setup:di:compile run then why need to run also cache:flush and also upgrade,deploy

      – HaFiz Umer
      Feb 27 at 7:11











    • @HaFizUmer see answer that Muhammad Ahmed has given, he described when to run other commands

      – Shoaib Munir
      Feb 27 at 16:53


















    2














    di:compile

    =>This command is used when you make change in di file or create new plugin or preference.
    setup:upgrade

    =>This command is used when you make a new module and you want to used it in your magento project.
    indexer:indexer

    =>When you make a change on frontend then you need to use this command.






    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%2f263524%2fmagento2-which-command-run-and-when-to-run%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      Although question have already been answered and accepted as well, but i thought it would be nice to compile all points in single answer for better understanding and for other users who are searching for such understanding:



      So we will go part by part of question(s):



      Question Part A :




      Kindly Clear Difference Between php bin/magento cache:flush and cache:clean




      as @Shoib Answers, cache:flush destroys the cache storage and build cache again where as cache:clean cleans the cache and doesn't destroy the storage.



      Question Part B :




      which tasks Output to need cache:flush or clean




      when to Cache Clean ?



      When you make any change in template, layout or configurations , only clean cache, you should avoid cache:flush in any case. 90% your frontend , configuration issues will be solved by cache:clean.



      HINT :
      During frontend theme development, you can enable all caches just disable full_page cache, this will save you lot of time and in development, you just need to run cache:clean command.



      When to Cache Flush ?



      Cache flush only and only , if your desired changes not worked as expected after cache:clean command.



      Question Part C :




      which task need these Commands => **di:compile,setup:upgrade,setup:static-content:deploy




      In part c of your question, you mentioned commands like :



      1 - **di:compile** , 2 - **setup:upgrade** , 3 - **setup:static-content:deploy**



      Let's re-order these as per usage and recommendation of commands :



      • 1 - setup:upgrade


      • 2 - di:compile


      • 3 - setup:static-content:deploy


      1 - setup:upgrade :



      When you add new module you should run this command this command will add your module entry in setup_module table and also in config.php file. As it updates the Database schema.



      2 - setup:di:compile



      This command is used to create factories, proxies, interceptors etc :



      • Application code generation (factories, proxies, and so on)

      • Area configuration aggregation (that is, optimized dependency injection configurations per area)

      • Interceptor generation (that is, optimized code generation of interceptors)

      • Interception cache generation

      • Repositories code generation (that is, generated code for APIs)

      • Service data attributes generation (that is, generated extension classes for data objects)

      in short run this command when you make any change in your module classes files, constructor etc and generates the contents of the var/di folder in Magento <2.2 and generated for Magento >= 2.2.
      Refer to Magento Dev Docs for complete detail



      3 - setup:static-content:deploy



      Run this command when you are developing / making changes in your theme LESS or other JS / static files. Static view files are located in the /pub/static directory, and some are cached in the /var/view_preprocessed directory as well.



      For more details about static content refer to Magento Dev Docs here and you can also read in which mode you should run which command.



      Note :



      If you make any change in template or layout file, php bin/magento cache:clean command will work for you , you don't need to deploy static content.



      Hope this will help to understand mechanism.






      share|improve this answer



























        1














        Although question have already been answered and accepted as well, but i thought it would be nice to compile all points in single answer for better understanding and for other users who are searching for such understanding:



        So we will go part by part of question(s):



        Question Part A :




        Kindly Clear Difference Between php bin/magento cache:flush and cache:clean




        as @Shoib Answers, cache:flush destroys the cache storage and build cache again where as cache:clean cleans the cache and doesn't destroy the storage.



        Question Part B :




        which tasks Output to need cache:flush or clean




        when to Cache Clean ?



        When you make any change in template, layout or configurations , only clean cache, you should avoid cache:flush in any case. 90% your frontend , configuration issues will be solved by cache:clean.



        HINT :
        During frontend theme development, you can enable all caches just disable full_page cache, this will save you lot of time and in development, you just need to run cache:clean command.



        When to Cache Flush ?



        Cache flush only and only , if your desired changes not worked as expected after cache:clean command.



        Question Part C :




        which task need these Commands => **di:compile,setup:upgrade,setup:static-content:deploy




        In part c of your question, you mentioned commands like :



        1 - **di:compile** , 2 - **setup:upgrade** , 3 - **setup:static-content:deploy**



        Let's re-order these as per usage and recommendation of commands :



        • 1 - setup:upgrade


        • 2 - di:compile


        • 3 - setup:static-content:deploy


        1 - setup:upgrade :



        When you add new module you should run this command this command will add your module entry in setup_module table and also in config.php file. As it updates the Database schema.



        2 - setup:di:compile



        This command is used to create factories, proxies, interceptors etc :



        • Application code generation (factories, proxies, and so on)

        • Area configuration aggregation (that is, optimized dependency injection configurations per area)

        • Interceptor generation (that is, optimized code generation of interceptors)

        • Interception cache generation

        • Repositories code generation (that is, generated code for APIs)

        • Service data attributes generation (that is, generated extension classes for data objects)

        in short run this command when you make any change in your module classes files, constructor etc and generates the contents of the var/di folder in Magento <2.2 and generated for Magento >= 2.2.
        Refer to Magento Dev Docs for complete detail



        3 - setup:static-content:deploy



        Run this command when you are developing / making changes in your theme LESS or other JS / static files. Static view files are located in the /pub/static directory, and some are cached in the /var/view_preprocessed directory as well.



        For more details about static content refer to Magento Dev Docs here and you can also read in which mode you should run which command.



        Note :



        If you make any change in template or layout file, php bin/magento cache:clean command will work for you , you don't need to deploy static content.



        Hope this will help to understand mechanism.






        share|improve this answer

























          1












          1








          1







          Although question have already been answered and accepted as well, but i thought it would be nice to compile all points in single answer for better understanding and for other users who are searching for such understanding:



          So we will go part by part of question(s):



          Question Part A :




          Kindly Clear Difference Between php bin/magento cache:flush and cache:clean




          as @Shoib Answers, cache:flush destroys the cache storage and build cache again where as cache:clean cleans the cache and doesn't destroy the storage.



          Question Part B :




          which tasks Output to need cache:flush or clean




          when to Cache Clean ?



          When you make any change in template, layout or configurations , only clean cache, you should avoid cache:flush in any case. 90% your frontend , configuration issues will be solved by cache:clean.



          HINT :
          During frontend theme development, you can enable all caches just disable full_page cache, this will save you lot of time and in development, you just need to run cache:clean command.



          When to Cache Flush ?



          Cache flush only and only , if your desired changes not worked as expected after cache:clean command.



          Question Part C :




          which task need these Commands => **di:compile,setup:upgrade,setup:static-content:deploy




          In part c of your question, you mentioned commands like :



          1 - **di:compile** , 2 - **setup:upgrade** , 3 - **setup:static-content:deploy**



          Let's re-order these as per usage and recommendation of commands :



          • 1 - setup:upgrade


          • 2 - di:compile


          • 3 - setup:static-content:deploy


          1 - setup:upgrade :



          When you add new module you should run this command this command will add your module entry in setup_module table and also in config.php file. As it updates the Database schema.



          2 - setup:di:compile



          This command is used to create factories, proxies, interceptors etc :



          • Application code generation (factories, proxies, and so on)

          • Area configuration aggregation (that is, optimized dependency injection configurations per area)

          • Interceptor generation (that is, optimized code generation of interceptors)

          • Interception cache generation

          • Repositories code generation (that is, generated code for APIs)

          • Service data attributes generation (that is, generated extension classes for data objects)

          in short run this command when you make any change in your module classes files, constructor etc and generates the contents of the var/di folder in Magento <2.2 and generated for Magento >= 2.2.
          Refer to Magento Dev Docs for complete detail



          3 - setup:static-content:deploy



          Run this command when you are developing / making changes in your theme LESS or other JS / static files. Static view files are located in the /pub/static directory, and some are cached in the /var/view_preprocessed directory as well.



          For more details about static content refer to Magento Dev Docs here and you can also read in which mode you should run which command.



          Note :



          If you make any change in template or layout file, php bin/magento cache:clean command will work for you , you don't need to deploy static content.



          Hope this will help to understand mechanism.






          share|improve this answer













          Although question have already been answered and accepted as well, but i thought it would be nice to compile all points in single answer for better understanding and for other users who are searching for such understanding:



          So we will go part by part of question(s):



          Question Part A :




          Kindly Clear Difference Between php bin/magento cache:flush and cache:clean




          as @Shoib Answers, cache:flush destroys the cache storage and build cache again where as cache:clean cleans the cache and doesn't destroy the storage.



          Question Part B :




          which tasks Output to need cache:flush or clean




          when to Cache Clean ?



          When you make any change in template, layout or configurations , only clean cache, you should avoid cache:flush in any case. 90% your frontend , configuration issues will be solved by cache:clean.



          HINT :
          During frontend theme development, you can enable all caches just disable full_page cache, this will save you lot of time and in development, you just need to run cache:clean command.



          When to Cache Flush ?



          Cache flush only and only , if your desired changes not worked as expected after cache:clean command.



          Question Part C :




          which task need these Commands => **di:compile,setup:upgrade,setup:static-content:deploy




          In part c of your question, you mentioned commands like :



          1 - **di:compile** , 2 - **setup:upgrade** , 3 - **setup:static-content:deploy**



          Let's re-order these as per usage and recommendation of commands :



          • 1 - setup:upgrade


          • 2 - di:compile


          • 3 - setup:static-content:deploy


          1 - setup:upgrade :



          When you add new module you should run this command this command will add your module entry in setup_module table and also in config.php file. As it updates the Database schema.



          2 - setup:di:compile



          This command is used to create factories, proxies, interceptors etc :



          • Application code generation (factories, proxies, and so on)

          • Area configuration aggregation (that is, optimized dependency injection configurations per area)

          • Interceptor generation (that is, optimized code generation of interceptors)

          • Interception cache generation

          • Repositories code generation (that is, generated code for APIs)

          • Service data attributes generation (that is, generated extension classes for data objects)

          in short run this command when you make any change in your module classes files, constructor etc and generates the contents of the var/di folder in Magento <2.2 and generated for Magento >= 2.2.
          Refer to Magento Dev Docs for complete detail



          3 - setup:static-content:deploy



          Run this command when you are developing / making changes in your theme LESS or other JS / static files. Static view files are located in the /pub/static directory, and some are cached in the /var/view_preprocessed directory as well.



          For more details about static content refer to Magento Dev Docs here and you can also read in which mode you should run which command.



          Note :



          If you make any change in template or layout file, php bin/magento cache:clean command will work for you , you don't need to deploy static content.



          Hope this will help to understand mechanism.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 7 at 12:52









          Naveed AsimNaveed Asim

          2,7142317




          2,7142317























              3














              Cleaning a cache type deletes all items from enabled Magento cache types only. In other words, this option does not affect other processes or applications because it cleans only the cache that Magento uses.



              Flushing a cache type purges the cache storage, which might affect other processes applications that are using the same storage.



              In short: Clean is a soft way of cleaning cache whereas flush is the hard flush of cache storage.



              Reference: https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cache.html



              Magento 2: What is difference between Cache Clean & Cache Flush?






              share|improve this answer

























              • what mean of which might affect other processes applications that are using the same storage ? which other process ?

                – HaFiz Umer
                Feb 27 at 6:52






              • 1





                Like third-party developers can put any data in any segment of the cache. They can use your cache storage. So, when you clean, it will not effect anything, whereas if you flush cache it will also flush third party module's cache. Then that module will regenerate cache in cache storage

                – Shoaib Munir
                Feb 27 at 7:01











              • yes clean ! third-pary modules .

                – HaFiz Umer
                Feb 27 at 7:03











              • when setup:di:compile run then why need to run also cache:flush and also upgrade,deploy

                – HaFiz Umer
                Feb 27 at 7:11











              • @HaFizUmer see answer that Muhammad Ahmed has given, he described when to run other commands

                – Shoaib Munir
                Feb 27 at 16:53















              3














              Cleaning a cache type deletes all items from enabled Magento cache types only. In other words, this option does not affect other processes or applications because it cleans only the cache that Magento uses.



              Flushing a cache type purges the cache storage, which might affect other processes applications that are using the same storage.



              In short: Clean is a soft way of cleaning cache whereas flush is the hard flush of cache storage.



              Reference: https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cache.html



              Magento 2: What is difference between Cache Clean & Cache Flush?






              share|improve this answer

























              • what mean of which might affect other processes applications that are using the same storage ? which other process ?

                – HaFiz Umer
                Feb 27 at 6:52






              • 1





                Like third-party developers can put any data in any segment of the cache. They can use your cache storage. So, when you clean, it will not effect anything, whereas if you flush cache it will also flush third party module's cache. Then that module will regenerate cache in cache storage

                – Shoaib Munir
                Feb 27 at 7:01











              • yes clean ! third-pary modules .

                – HaFiz Umer
                Feb 27 at 7:03











              • when setup:di:compile run then why need to run also cache:flush and also upgrade,deploy

                – HaFiz Umer
                Feb 27 at 7:11











              • @HaFizUmer see answer that Muhammad Ahmed has given, he described when to run other commands

                – Shoaib Munir
                Feb 27 at 16:53













              3












              3








              3







              Cleaning a cache type deletes all items from enabled Magento cache types only. In other words, this option does not affect other processes or applications because it cleans only the cache that Magento uses.



              Flushing a cache type purges the cache storage, which might affect other processes applications that are using the same storage.



              In short: Clean is a soft way of cleaning cache whereas flush is the hard flush of cache storage.



              Reference: https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cache.html



              Magento 2: What is difference between Cache Clean & Cache Flush?






              share|improve this answer















              Cleaning a cache type deletes all items from enabled Magento cache types only. In other words, this option does not affect other processes or applications because it cleans only the cache that Magento uses.



              Flushing a cache type purges the cache storage, which might affect other processes applications that are using the same storage.



              In short: Clean is a soft way of cleaning cache whereas flush is the hard flush of cache storage.



              Reference: https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cache.html



              Magento 2: What is difference between Cache Clean & Cache Flush?







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Feb 26 at 17:34

























              answered Feb 26 at 17:26









              Shoaib MunirShoaib Munir

              2,1101828




              2,1101828












              • what mean of which might affect other processes applications that are using the same storage ? which other process ?

                – HaFiz Umer
                Feb 27 at 6:52






              • 1





                Like third-party developers can put any data in any segment of the cache. They can use your cache storage. So, when you clean, it will not effect anything, whereas if you flush cache it will also flush third party module's cache. Then that module will regenerate cache in cache storage

                – Shoaib Munir
                Feb 27 at 7:01











              • yes clean ! third-pary modules .

                – HaFiz Umer
                Feb 27 at 7:03











              • when setup:di:compile run then why need to run also cache:flush and also upgrade,deploy

                – HaFiz Umer
                Feb 27 at 7:11











              • @HaFizUmer see answer that Muhammad Ahmed has given, he described when to run other commands

                – Shoaib Munir
                Feb 27 at 16:53

















              • what mean of which might affect other processes applications that are using the same storage ? which other process ?

                – HaFiz Umer
                Feb 27 at 6:52






              • 1





                Like third-party developers can put any data in any segment of the cache. They can use your cache storage. So, when you clean, it will not effect anything, whereas if you flush cache it will also flush third party module's cache. Then that module will regenerate cache in cache storage

                – Shoaib Munir
                Feb 27 at 7:01











              • yes clean ! third-pary modules .

                – HaFiz Umer
                Feb 27 at 7:03











              • when setup:di:compile run then why need to run also cache:flush and also upgrade,deploy

                – HaFiz Umer
                Feb 27 at 7:11











              • @HaFizUmer see answer that Muhammad Ahmed has given, he described when to run other commands

                – Shoaib Munir
                Feb 27 at 16:53
















              what mean of which might affect other processes applications that are using the same storage ? which other process ?

              – HaFiz Umer
              Feb 27 at 6:52





              what mean of which might affect other processes applications that are using the same storage ? which other process ?

              – HaFiz Umer
              Feb 27 at 6:52




              1




              1





              Like third-party developers can put any data in any segment of the cache. They can use your cache storage. So, when you clean, it will not effect anything, whereas if you flush cache it will also flush third party module's cache. Then that module will regenerate cache in cache storage

              – Shoaib Munir
              Feb 27 at 7:01





              Like third-party developers can put any data in any segment of the cache. They can use your cache storage. So, when you clean, it will not effect anything, whereas if you flush cache it will also flush third party module's cache. Then that module will regenerate cache in cache storage

              – Shoaib Munir
              Feb 27 at 7:01













              yes clean ! third-pary modules .

              – HaFiz Umer
              Feb 27 at 7:03





              yes clean ! third-pary modules .

              – HaFiz Umer
              Feb 27 at 7:03













              when setup:di:compile run then why need to run also cache:flush and also upgrade,deploy

              – HaFiz Umer
              Feb 27 at 7:11





              when setup:di:compile run then why need to run also cache:flush and also upgrade,deploy

              – HaFiz Umer
              Feb 27 at 7:11













              @HaFizUmer see answer that Muhammad Ahmed has given, he described when to run other commands

              – Shoaib Munir
              Feb 27 at 16:53





              @HaFizUmer see answer that Muhammad Ahmed has given, he described when to run other commands

              – Shoaib Munir
              Feb 27 at 16:53











              2














              di:compile

              =>This command is used when you make change in di file or create new plugin or preference.
              setup:upgrade

              =>This command is used when you make a new module and you want to used it in your magento project.
              indexer:indexer

              =>When you make a change on frontend then you need to use this command.






              share|improve this answer



























                2














                di:compile

                =>This command is used when you make change in di file or create new plugin or preference.
                setup:upgrade

                =>This command is used when you make a new module and you want to used it in your magento project.
                indexer:indexer

                =>When you make a change on frontend then you need to use this command.






                share|improve this answer

























                  2












                  2








                  2







                  di:compile

                  =>This command is used when you make change in di file or create new plugin or preference.
                  setup:upgrade

                  =>This command is used when you make a new module and you want to used it in your magento project.
                  indexer:indexer

                  =>When you make a change on frontend then you need to use this command.






                  share|improve this answer













                  di:compile

                  =>This command is used when you make change in di file or create new plugin or preference.
                  setup:upgrade

                  =>This command is used when you make a new module and you want to used it in your magento project.
                  indexer:indexer

                  =>When you make a change on frontend then you need to use this command.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 27 at 7:21









                  Muhammad AhmedMuhammad Ahmed

                  586




                  586



























                      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%2f263524%2fmagento2-which-command-run-and-when-to-run%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

                      Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                      Magento 2 disable Secret Key on URL's from terminal The Next CEO of Stack OverflowMagento 2 Shortcut/GUI tool to perform commandline tasks for windowsIn menu add configuration linkMagento oAuth : Generating access token and access secretMagento 2 security key issue in Third-Party API redirect URIPublic actions in admin controllersHow to Disable Cache in Custom WidgetURL Key not changing in Magento 2Product URL Key gets deleted when importing custom options - Magento 2Problem with reindex terminalMagento 2 - bin/magento Commands not working in Cpanel Terminal

                      Aasi (pallopeli) Navigointivalikko