https://www.torah.media/是我的网站,它的加载速度非常慢。我用来构建https://www.torah.media/的开源项目(https://github.com/phanan/koel)在他们的演示http://demo.koel.phanan.net/#!/home上运行得非常快。
请帮我弄清楚如何解决它的速度问题。我似乎无法从Chrome的网络标签中看懂任何东西。
我已经尝试从AWS切换到Cloudflare,但在速度上仍然没有太大的提高。
发布于 2019-08-16 13:15:18
下面的缓存响应示例。
$people = Cache::remember('example:people', $ten_minutes_in_seconds, function () {
$people = People::all();
return $people;
});
return response()->json([
'people' => $people,
], 200);这可能会被缓存,但请上帝小心,例如,永远不要缓存与用户相关的个人数据,也要使用分页。
https://stackoverflow.com/questions/57517207
复制相似问题