Laravel视图从一台服务器上的缓存显示,但在另一台服务器上运行良好 [英] Laravel views are showing from cache on one server but works fine on other server
问题描述
我正在研究Laravel(5.4)项目.关于laravel视图,我面临一个奇怪的问题.我的所有视图都工作正常,但有些视图始终显示旧内容,因此我必须手动刷新页面以获取最新数据.我正在使用带有https://的中级服务器.另一个奇怪的是,相同的代码在我的测试服务器上运行正常,该服务器在GoDaddy上,并且我没有使用https进行操作,没有缓存问题,并且在本地主机上也没有缓存问题.请指导我如何解决此缓存问题.
I am working on Laravel(5.4) project. I am facing an strange issue regarding the laravel views. My all views are working fine but some views are always showing the old content and I've to refresh the page manually to get the latest data.I am using midphase server with https://. Other strange thing is that same code is working fine on my testing server, which is on GoDaddy and I am NOT using https for it, there is no cache issue on it and also there is no cache issue on my localhost. Kindly guide me, how to solve this cache issue.
推荐答案
只需尝试使用以下命令清除视图缓存
Just try clear the view cache using the following command
php artisan help view:clear
希望以上命令对您有所帮助.
Hope the above command will help you Thanks.
这篇关于Laravel视图从一台服务器上的缓存显示,但在另一台服务器上运行良好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!