Speeding up Laravel
Hello,
At the moment I'm trying to speed up my Laravel website. The site is on my development server blazing fast. But on my production server it is much slower. I contacted my hosting provider and they say it might be slow because it loads a lot of files.
The site is on a clustered hosting and files are stored on a other servers, so they need to be loaded from an internal network. This might cause the site being slower. (The advantage of this cluster hosting is that the resources are actually unlimited. A huge boost in visitors, because the site shows up in for example a TV show, won't take the site down.)
If I look at all the files that are loaded for only showing the homepage, I see that it load over 40 files for swiftmailer. But not a single email will be send from the homepage. So why load 40 of these files..? Probably there are a lot of other files that do not need to be loaded.
Is there a way that Laravel only load files it really needs? I suppose Laravel is already optimized for this. But because it loads 40 swiftmailer on a page that doesn't send e-mails. I wonder if it could be improved.
Edit:
There is also the app/compile.php file, is there a default for all files that could be added?
Please or to participate in this conversation.