PHP is very good at being a scripting language however it isn't designed to handle very large files under high load. Your webserver is built to handle files best so it makes sense for it to be doing all the hard work when files are downloaded.
Within our core YetiShare script we've integrated with the 2 most common webservers to allow for the best performance when providing file downloads on busy sites:
- XSendFile - For Apache. If enabled, files will be handed off from PHP onto Apache as soon as they are requested. This still keeps the original file location secure but allows for the webserver to handle the download rather than putting PHP under any pressure.
- XAccelRedirect - For Nginx. As above however this is for the Nginx webserver. This also has the advantage of built a built in download complete log, if you're using the rewards plugin you'll want this! It'll only log rewards once the entire download has completed.
For more information see our knowledge base on XSendFile or XAccelRedirect.
> More Features