php - 为什么处理时间长?我的页面持续加载几个小时?
问题描述
添加了清除缓存的路由。我的页面一直在加载-
Route::get('/clear-all', function() {
$exitCode = Artisan::call('route:clear');
$exitCode = Artisan::call('view:clear');
$exitCode = Artisan::call('config:cache');
$exitCode = Artisan::call('optimize');
exec('composer dump-autoload');
return '<h1>All cache cleared</h1>';
});
解决方案
推荐阅读
- android - 放置在另一个 TextView 之上时,TextView 呈现不一致
- php - 如何在前端和后端 PHP 之间共享 SESSION?
- python - 二进制搜索以将值插入排序列表
- visual-studio-code - VSCode使用JS打开特定行号的文件
- django - 我正在尝试在我的 django 项目中使用 css 和图像等静态文件,但静态文件未显示在我的模板页面中
- android - 如何将片段\活动的标题设置为工具栏、项目模板
- copy - 将形状从一张纸复制并粘贴到另一张纸上
- regex - PowerShell正则表达式忽略直到字符串匹配,包括字符串匹配
- python - ValueError:操作数无法与形状一起广播 (2,176525) (300,176525)
- javascript - 如何发送带有 BinaryArray 的 json?