dongsu2807 2018-01-29 03:58
浏览 116
已采纳

调整日期或时间后,Laravel视图不会更新

I am creating password expiration (90 days) in laravel, then I adjust my current date and put it to 90 days (when changing view its still updating), after test I back my current date and update some view but view is not updating anymore. My Procedure:

Step 1: Go to your laravel project

Step 2: change computer time (ex: if 1/29/2018 now, change it to 7/29/2018)

Step 3: edit your laravel project, check if your view is updating (if yes proceed to step 4 )

Step 4: back your current date, then update your code in view again, its not updating anymore

I am using IIS as my server, laravel 5.1, php 5.5.

I already try to use this.

composer dump_autoload

composer clear-cache

php artisan clear-compiled

php artisan config:clear

php artisan cache:clear

I already try to clear browsing data.

Thanks a lot.

  • 写回答

1条回答 默认 最新

  • douhao2153 2018-01-30 18:15
    关注

    Laravel caches view files. If the last modified time of the view is greater than cache file it will remove the cache file and make a new one. When you set the 90 date after current time it made a new cache file with future timestamp. But you reverted it back, the last modified date of the cache file is greater than view's last modified. So it's not going to update the cache file. So run command php artisan view:clear to delete the cached files

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集