rawr34
Forum Replies Created
-
memory_get_usage()
in Download.php reports around 10mb – quite a large amount. If this can be reduced that would at least be a start. I’m attempting to do so byunset()
ing some variables, which isn’t helping.Hello again.
It seems that, as makes sense, a php thread is also opened and remains open upon downloading a file. This is a problem because each thread is ~30mb, so concurrent downloads quickly consume a large amount of memory.
Any workarounds/fixes besides redirecting to the actual file and letting the server take care of sending the file? I’ve done a bit of research and have yet to find if I can let php take care of sending the file without keeping such a large process opened the entire time.
Opera Mini is different than other browsers; it access the web through a proxy. Not sure why that would fix the problem (maybe an issue with the headers), but that is probably why you’re getting different results.
Personal advice from what I remember: GZip static files (js/css). Unless your website is static (using some sort of WP Cache), it’s not worth compressing all of WP – which is dynamic. I could be mistaken about this. And if this is correct, you might need to setup caching of the compressed static files (so the server doesn’t have to compress them on each request).
Awesome, that works – no threads remain open while downloading (the code was added to line 450 of
Download.php
).Thank you.
Apology not necessary, it happens. ??
Also, I’m not the developer of this plugin, just a fellow user.
What you want is very easily possible, but you’re trying to accomplish it incorrectly (maybe from setup.php).
From the wp’s admin page, go to wp-filebase -> manage templates. Edit the files template you’re using (probably called 3-col-row) and the file list template you’re using (probably Table).
Again, it’s all very easily possible. If you’re having difficulties, the problem is that you don’t know exactly where to look / what to change. As with all things, a bit of familiarity is needed to accomplish what we want.