Laravel默认使用 file 模式缓存
    缓存文件位于 /storage/framework/cache/data 目录
    当缓存文件过多时,可能导致系统崩溃无法访问

    此时可以添加一个手动清除缓存的方法:
    编辑路由文件 /routes/web.php , 添加如下内容:

    1. // 刷新缓存URL 其中 *** 替换成实际项目路径
    2. Route::get('/***/flushcache/{string}',function($string){
    3. if ( $string == "FlushCacheFile") {
    4. Cache::store("file")->flush();
    5. dd( "清除缓存" );
    6. }
    7. });

    这样就可以通过访问 https://_www.xxx.com/***_/flushcache/FlushCacheFile 来清除缓存文件了

    stackoverflow 清除缓存