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

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

报告相同问题?

悬赏问题

  • ¥30 vmware exsi重置后的密码
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 UE5#if WITH_EDITOR导致打包的功能不可用
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?
  • ¥15 电磁场的matlab仿真
  • ¥15 mars2d在vue3中的引入问题