I have both var and var1 folders in my directory - which one to use? (Magento 2.1)












1















I have both var and var1 folders in my Magento 2 directory.
I've no idea why, but I need to remove one of them due to space.
Could anyone help me understand why the second one appears, and which one do I remove?










share|improve this question

























  • someone other than you may have rename your var folder to var1. If var folder not found magento will recreate that folder again.Just take a backup and then remove var1 folder.

    – Priyank
    Dec 18 '17 at 13:06











  • You must care about Var folder and Var1 is nothing just created by someone manually.

    – Ashish Raj
    Dec 18 '17 at 14:35
















1















I have both var and var1 folders in my Magento 2 directory.
I've no idea why, but I need to remove one of them due to space.
Could anyone help me understand why the second one appears, and which one do I remove?










share|improve this question

























  • someone other than you may have rename your var folder to var1. If var folder not found magento will recreate that folder again.Just take a backup and then remove var1 folder.

    – Priyank
    Dec 18 '17 at 13:06











  • You must care about Var folder and Var1 is nothing just created by someone manually.

    – Ashish Raj
    Dec 18 '17 at 14:35














1












1








1








I have both var and var1 folders in my Magento 2 directory.
I've no idea why, but I need to remove one of them due to space.
Could anyone help me understand why the second one appears, and which one do I remove?










share|improve this question
















I have both var and var1 folders in my Magento 2 directory.
I've no idea why, but I need to remove one of them due to space.
Could anyone help me understand why the second one appears, and which one do I remove?







magento-2.1






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 14 mins ago









Teja Bhagavan Kollepara

2,94841847




2,94841847










asked Dec 18 '17 at 12:42









dan johnsondan johnson

61




61













  • someone other than you may have rename your var folder to var1. If var folder not found magento will recreate that folder again.Just take a backup and then remove var1 folder.

    – Priyank
    Dec 18 '17 at 13:06











  • You must care about Var folder and Var1 is nothing just created by someone manually.

    – Ashish Raj
    Dec 18 '17 at 14:35



















  • someone other than you may have rename your var folder to var1. If var folder not found magento will recreate that folder again.Just take a backup and then remove var1 folder.

    – Priyank
    Dec 18 '17 at 13:06











  • You must care about Var folder and Var1 is nothing just created by someone manually.

    – Ashish Raj
    Dec 18 '17 at 14:35

















someone other than you may have rename your var folder to var1. If var folder not found magento will recreate that folder again.Just take a backup and then remove var1 folder.

– Priyank
Dec 18 '17 at 13:06





someone other than you may have rename your var folder to var1. If var folder not found magento will recreate that folder again.Just take a backup and then remove var1 folder.

– Priyank
Dec 18 '17 at 13:06













You must care about Var folder and Var1 is nothing just created by someone manually.

– Ashish Raj
Dec 18 '17 at 14:35





You must care about Var folder and Var1 is nothing just created by someone manually.

– Ashish Raj
Dec 18 '17 at 14:35










1 Answer
1






active

oldest

votes


















1














Magento does a lot of caching and autogeneration of certain class types. These caches and generated classes are all located in Magento's root var directory. The usual contents of the var directory is as follows:




  • cache


  • composer_home


  • generation


  • log


  • tmp


  • view_preprocessed


  • importexport


  • page_cache



So maybe someone backup directory(var1). You can delete var1 directory






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%2f206232%2fi-have-both-var-and-var1-folders-in-my-directory-which-one-to-use-magento-2%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









    1














    Magento does a lot of caching and autogeneration of certain class types. These caches and generated classes are all located in Magento's root var directory. The usual contents of the var directory is as follows:




    • cache


    • composer_home


    • generation


    • log


    • tmp


    • view_preprocessed


    • importexport


    • page_cache



    So maybe someone backup directory(var1). You can delete var1 directory






    share|improve this answer




























      1














      Magento does a lot of caching and autogeneration of certain class types. These caches and generated classes are all located in Magento's root var directory. The usual contents of the var directory is as follows:




      • cache


      • composer_home


      • generation


      • log


      • tmp


      • view_preprocessed


      • importexport


      • page_cache



      So maybe someone backup directory(var1). You can delete var1 directory






      share|improve this answer


























        1












        1








        1







        Magento does a lot of caching and autogeneration of certain class types. These caches and generated classes are all located in Magento's root var directory. The usual contents of the var directory is as follows:




        • cache


        • composer_home


        • generation


        • log


        • tmp


        • view_preprocessed


        • importexport


        • page_cache



        So maybe someone backup directory(var1). You can delete var1 directory






        share|improve this answer













        Magento does a lot of caching and autogeneration of certain class types. These caches and generated classes are all located in Magento's root var directory. The usual contents of the var directory is as follows:




        • cache


        • composer_home


        • generation


        • log


        • tmp


        • view_preprocessed


        • importexport


        • page_cache



        So maybe someone backup directory(var1). You can delete var1 directory







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 18 '17 at 13:02









        Vithal BariyaVithal Bariya

        471215




        471215






























            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%2f206232%2fi-have-both-var-and-var1-folders-in-my-directory-which-one-to-use-magento-2%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

            What other Star Trek series did the main TNG cast show up in?

            Berlina muro

            Berlina aerponto