Magento 2 static cache

被刻印的时光 ゝ 提交于 2019-12-12 02:37:05

问题


When I would change something in template, I need flush static cache(pub/static) because I didn't saw any changes in front end, but after that this folders has some empty folder and in front end I have some error ReferenceError: require is not defined and I need use this command c:\xampp\php\php.exe -f d:\projects\localsites\magento2.local\magento\bin\magento -- setup:static-content:deploy to generate static content. Maybe I do something wrong?


回答1:


When you developing something for magento2 you should enable developer mode and static willn't has cache and will generation all requests.

More about Magento 2 mods you can read on this page.



来源:https://stackoverflow.com/questions/33957631/magento-2-static-cache

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!