- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Magento gurus,
Is it safe to sync /var folder with other Magento nodes or every node should have its own /var folder.
Also i read that /var/generated should be shared.
Thanks
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @thedoole
If you think the answer has resolved your problems - kindly accept as solution and close the issues so other user gets helped !
Hope it helps !
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2.2.x CE shared /var folder
Hi @thedoole
Yes - each magento node have their own VAR directory - basically VAR directory have a generated factory classes , proxy classes etc. so all those classes are different for different magento nodes.
Also var/generated directory is unique for each node of magento.
So here i would suggest you to don't shared the VAR directory with other Magento node.
When we run - php bin/magento setup:di:compile command it will generate all those directories again !
Hope it helps !
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @thedoole
If you think the answer has resolved your problems - kindly accept as solution and close the issues so other user gets helped !
Hope it helps !