Laravel and view caching in development — can't see changes right away

后端 未结 7 1654
情深已故
情深已故 2020-12-01 14:21

Some friends and I decided to start working on a project and we came across Laravel and thought it might be a good tool. We started using it locally to develop out some of

7条回答
  •  -上瘾入骨i
    2020-12-01 14:48

    Another possibility if you're using a VM (like Vagrant) and it is sharing files from your host via NFS is that NFS is caching the modification times. This would lead Laravel to think that the cached compiled templates are still fresh. This is the problem I had today, and I solved it (and a related problem of gulp-watch not noticing that stylesheet and javascript source files were changing) by adding the NFS mount option lookupcache=none.

    I wrote about it here: Watching files for changes on Vagrant, file modification times not updating

提交回复
热议问题