首页 > 解决方案 > 为什么处理时间长?我的页面持续加载几个小时?

问题描述

添加了清除缓存的路由。我的页面一直在加载-

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>';
    });

标签: phplaravelroutes

解决方案


推荐阅读