vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=244391

vB Accelerator
by Vitaly
11 Jun 2010 08:50

2 Attachment(s)
ported & significantly improved vb 3.8 branch.

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?
  1. 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.
  2. When attachments body transfered via php, that's much more waisteful, than direct transfer of static file. Especially for big files.
  3. Browser does lots of additional requests to static file, to check if modified
  4. JS/CSS not compressed
what this mod does:
  1. All thumbnails will have DIRECT links (served as static files). Much lower reply latency and server load.
  2. If you have nginx 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.
  3. Static files are properly cached/compressed after tuning
how to install:
  1. Make sure, attachments are stored on disk, NOT in database.
  2. Make sure, that thumbnails are in web-accessible area. If not - reconfigure your web-server first.
  3. Check manually, that you can download any .thumb file via browser.
  4. !!! Tune cache/compression settings for static files (see example from next post)
  5. Import product XML & tune settings.
  6. Enjoy
This mod is developped here: http://github.com/rcdesign/vb-accelerator . Patches are welcome.

history:

0.9
- fixed path for duplicated attachments

0.8
- fixed back timestamp parameter & substitutions for XML output
- added conversion for assets.php thumbnails (in attachments manager)

0.7
- ported to vb4
- added basic CDN support for thumbnails

Vitaly 11 Jun 2010 08:51


Nginx config sample



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.




Apache config example


TBD :) . Please, help to fill.

funmasti 11 Jun 2010 11:41

Thanks... anyone tried it?

gwerzal 11 Jun 2010 12:11

This looks good. thanks for sharing.

Vitaly 12 Jun 2010 14:35

Updated mod to catch XML output & timestamp issues.

TeknoSounds 12 Jun 2010 19:46

Will this work along side vbOptimize and vB4: Supercharged? Are there conflicts? Duplicated features?

ChopSuey 12 Jun 2010 19:54

Quote:

Originally Posted by TeknoSounds (Post 2052600)
Will this work along side vbOptimize and vB4: Supercharged? Are there conflicts? Duplicated features?

vBOptimize is more of caching, vB4 supercharges is like "Store CSS As files" option but a little better. I don't see any conflicts.

Darkimmortal 13 Jun 2010 00:25

Oh cool, this looks like an improved version of my 'Attachment Optimiser' in vB4 SuperCharged - installed :)

Dr.osamA 13 Jun 2010 00:59

Thanks
installed

but i am not sour if it is working

anyone tried it?

waiting for tests

Vitaly 13 Jun 2010 02:31

Quote:

Originally Posted by Darkimmortal (Post 2052690)
Oh cool, this looks like an improved version of my 'Attachment Optimiser' in vB4 SuperCharged - installed :)

In fact, on the second page load, other feature doesn't make sence, if you set long expire for static content :) . You can check with firebug NET bookmark.

Optimizing the first page load is potentially interesting, but price in your case is very high - big server load and lots of possible conflicts.

kawe 13 Jun 2010 02:36

This is .htaccess on Nginx ?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And about " path to attachments "
is full path like : /home/www/html/sites.com/attachment
or
just /attachment/

Vitaly 13 Jun 2010 02:46

Quote:

Originally Posted by kawe (Post 2052715)
This is .htaccess on Nginx ?

Nginx doesn't support .htaccess. That's pаrt of config file. Please, read nginx documentation for details.

kawe 13 Jun 2010 02:58

Quote:

Originally Posted by Vitaly (Post 2052720)
Nginx doesn't support .htaccess. That's pаrt of config file. Please, read nginx documentation for details.

yeah i add this code to /etc/nginx/sites-enable/mydomain.com :D
under my vBseo config :) its right ?

Vitaly 13 Jun 2010 03:01

Quote:

Originally Posted by TeknoSounds (Post 2052600)
Will this work along side vbOptimize and vB4: Supercharged? Are there conflicts? Duplicated features?

vbOptimize do different things. It can make sence, if you have DB on separate server. Or if you setup many dirty-written mods :) . No conflicts. If you have local DB, then built-in query cache do most things for you.

Supercharged have some interesting ideas, but not balanced, IMHO. The same result can be acheived with much less efforts & server load :)

vb Accelerator - if you dont use attachments, skip it :) . But set "not expire" headers for static content. It really worth to do.

Vitaly 13 Jun 2010 03:06

Quote:

Originally Posted by kawe (Post 2052723)
yeah i add this code to /etc/nginx/sites-enable/mydomain.com :D
under my vBseo config :) its right ?

Gzip options can be in other place. Look there they are in your config, compare difference and fix.

Other rewrites should be BEFORE vbseo.


All times are GMT. The time now is 14:38.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.