admin
11-06-2010, 07:28 PM
This mod is suited for medium and big boards. It reduces server load, caused by thumnails and big attachments. Includes significant recommendations for server tuning, to speedup pages loading.
what's the problem with?
In original vB all thumbnails a downloaded via php. So, if you page contains 10-20 attached images, then each page php request will be followed by 10-20 thumbnails php requests. That's very bad.
When attachments body transfered via php, that's much more waisteful, than direct transfer of static file. Especially for big files.
Browser does lots of additional requests to static file, to check if modified
JS/CSS not compressed
what this mod does:
All thumbnails will have DIRECT links (served as static files). Much lower reply latency and server load.
If you have nginx (http://nginx.net/) webserver, you php-fcgi will not participate in file transfer any more. It will reply with X-Accel-Redirect header. Then nginx will proceed attachment as static file.
No more problems with multiple downloads of 10-mb files.
No needs to restrict attachments and full-size images for guests and search bots.
Static files are properly cached/compressed after tuning
how to install:
Make sure, attachments are stored on disk, NOT in database.
Make sure, that thumbnails are in web-accessible area. If not - reconfigure your web-server first.
Check manually, that you can download any .thumb file via browser.
!!! Tune cache/compression settings for static files (see example from next post)
Import product XML & tune settings.
Enjoy
This mod is developped here: http://github.com/rcdesign/vb-accelerator . Patches are welcome.
history:
0.7
- ported to vb4
- added basic CDN support for thumbnails
Screenshots:
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/06/11/07/11841276259302.png
what's the problem with?
In original vB all thumbnails a downloaded via php. So, if you page contains 10-20 attached images, then each page php request will be followed by 10-20 thumbnails php requests. That's very bad.
When attachments body transfered via php, that's much more waisteful, than direct transfer of static file. Especially for big files.
Browser does lots of additional requests to static file, to check if modified
JS/CSS not compressed
what this mod does:
All thumbnails will have DIRECT links (served as static files). Much lower reply latency and server load.
If you have nginx (http://nginx.net/) webserver, you php-fcgi will not participate in file transfer any more. It will reply with X-Accel-Redirect header. Then nginx will proceed attachment as static file.
No more problems with multiple downloads of 10-mb files.
No needs to restrict attachments and full-size images for guests and search bots.
Static files are properly cached/compressed after tuning
how to install:
Make sure, attachments are stored on disk, NOT in database.
Make sure, that thumbnails are in web-accessible area. If not - reconfigure your web-server first.
Check manually, that you can download any .thumb file via browser.
!!! Tune cache/compression settings for static files (see example from next post)
Import product XML & tune settings.
Enjoy
This mod is developped here: http://github.com/rcdesign/vb-accelerator . Patches are welcome.
history:
0.7
- ported to vb4
- added basic CDN support for thumbnails
Screenshots:
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/06/11/07/11841276259302.png