Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
vB Accelerator Details »»
vB Accelerator
Version: 0.4, by Vitaly Vitaly is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.8.x Rating:
Released: 03-06-2009 Last Update: 03-09-2009 Installs: 87
Uses Plugins Auto-Templates
Re-useable Code  
No support by the author.

vb 4.0 version here

This mod is suited for medium and big boards. It reduces server load, caused by thumnails and big attachments.

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.
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. That works for forum posts, blogs, albums. Everywhere!
how to install:
  1. Make sure, this files are stored on disk, NOT in database:
    • post attachments & thumbnails
    • blog attachments & thumbnails
    • album images & thumbnails
  2. Make sure, that thumbnails are in web-accessible area. If not - reconfigure your web-server first. If you own big board - then you know how to do that .
  3. Check manually, that you can download any .thumb file via browser.
  4. Import this product, and set options for you configuration.
  5. Be happy to reduce server count in your cluster
PS. It's tested and works fine at my production site for 1 week. But I'll be happy to know server load statistics from big boards owners.

This mod is developped here: http://github.com/rcdesign/vb-accelerator . Patches are welcome.

History

0.4
- fixed bug with PHP wagnings in server logs.

0.3
- first public release

Download Now

File Type: xml product-vb_accelerator.xml (12.8 KB, 535 views)

Screenshots

File Type: gif vbaccelerator.gif (42.9 KB, 0 views)

Supporters / CoAuthors

    Show Your Support

    • This modification may not be copied, reproduced or published elsewhere without author's permission.

    Comments
      #12  
    Old 03-07-2009, 07:06 AM
    Vitaly's Avatar
    Vitaly Vitaly is offline
     
    Join Date: Apr 2004
    Location: Russia, St.Petersburg
    Posts: 428
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    ACP -> Attachments -> Storage type
    ACP -> User Albums -> Storage type

    You'd better look to vB documentation about details. That's VERY CPU/Disk intencive operation, and you have to backup your board.
    Reply With Quote
      #13  
    Old 03-07-2009, 07:42 AM
    Bounce's Avatar
    Bounce Bounce is offline
     
    Join Date: Mar 2004
    Location: Edinburgh,Scotland
    Posts: 919
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by Vitaly View Post
    ACP -> Attachments -> Storage type
    ACP -> User Albums -> Storage type
    thanks
    Quote:
    Originally Posted by Vitaly View Post
    You'd better look to vB documentation about details. That's VERY CPU/Disk intencive operation, and you have to backup your board.
    yip aware o that,ty :up:
    Reply With Quote
      #14  
    Old 03-08-2009, 10:27 PM
    mindhunter77 mindhunter77 is offline
     
    Join Date: Jan 2006
    Posts: 194
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Anyone have any code to make the thumbnails accessible in LITGHTPD ?
    Reply With Quote
      #15  
    Old 03-08-2009, 11:10 PM
    relaxiha relaxiha is offline
     
    Join Date: Jan 2009
    Posts: 155
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Warning: Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(265) : eval()'d code on line 43

    ERROR
    Reply With Quote
      #16  
    Old 03-09-2009, 06:13 AM
    Vitaly's Avatar
    Vitaly Vitaly is offline
     
    Join Date: Apr 2004
    Location: Russia, St.Petersburg
    Posts: 428
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    relaxiha,

    1. Which php version?

    2. Fatal error or warning message in webserver log?

    3. At which page?

    http://forum.rcdesign.ru/f14/

    Seems to work. Go to any topic with attachments and see direct links for preview sources.
    Reply With Quote
      #17  
    Old 03-09-2009, 02:01 PM
    chesterano chesterano is offline
     
    Join Date: Oct 2008
    Posts: 27
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    PHP Code:
    WarningInvalid argument supplied for foreach() in [path]/includes/class_postbit.php(265) : eval()'d code on line 30

    Warning: Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(265) : eval()'
    d code on line 30

    Warning
    Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(265) : eval()'d code on line 30

    Warning: Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(265) : eval()'
    d code on line 30

    Warning
    Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(265) : eval()'d code on line 30

    Warning: Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(265) : eval()'
    d code on line 30

    Warning
    Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(265) : eval()'d code on line 30

    Warning: Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(265) : eval()'
    d code on line 30

    Warning
    Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(265) : eval()'d code on line 30 

    I have Apache please more detalis how setup direct access for thumbtails, because stop show ;(
    Reply With Quote
      #18  
    Old 03-09-2009, 03:12 PM
    Vitaly's Avatar
    Vitaly Vitaly is offline
     
    Join Date: Apr 2004
    Location: Russia, St.Petersburg
    Posts: 428
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Try attached file, that should help with warning mistake.
    Attached Files
    File Type: xml product-vb_accelerator.xml (12.7 KB, 13 views)
    Reply With Quote
      #19  
    Old 03-09-2009, 04:11 PM
    chesterano chesterano is offline
     
    Join Date: Oct 2008
    Posts: 27
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Working You are my Idol Thank You, everything is ok, only under IE and Opera thumbtails, not show. Under Fiefox and Chrome everything is ok... little bit strange? but I try checking config browse
    Thank You
    Reply With Quote
      #20  
    Old 03-09-2009, 04:29 PM
    Vitaly's Avatar
    Vitaly Vitaly is offline
     
    Join Date: Apr 2004
    Location: Russia, St.Petersburg
    Posts: 428
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Hm... that's strange... Find any direct link in FF, and check manually, that it's accessible from IE/Opera via web. Don't hesitate to provide screenshots of broken pages. I have very weak telepathy skills, to understand the problem from description "it doesn't work"

    Nobody of my regular 6000 users reported problem with IE. Try this advice: https://vborg.vbsupport.ru/showpost....07&postcount=9

    May be, apache work not as nginx with unknown extention types, no idea.
    Reply With Quote
      #21  
    Old 03-09-2009, 04:42 PM
    chesterano chesterano is offline
     
    Join Date: Oct 2008
    Posts: 27
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    I install plugin again and now is ok, under IE, Opera, Chrome, Firefox

    Thank You, Thank You, Thank You...Vitaly

    Regards
    chesterano
    Reply With Quote
    Reply

    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT. The time now is 08:40 PM.


    Powered by vBulletin® Version 3.8.12 by vBS
    Copyright ©2000 - 2024, vBulletin Solutions Inc.
    X vBulletin 3.8.12 by vBS Debug Information
    • Page Generation 0.05112 seconds
    • Memory Usage 2,345KB
    • Queries Executed 27 (?)
    More Information
    Template Usage:
    • (1)SHOWTHREAD
    • (1)ad_footer_end
    • (1)ad_footer_start
    • (1)ad_header_end
    • (1)ad_header_logo
    • (1)ad_navbar_below
    • (1)ad_showthread_beforeqr
    • (1)bbcode_php
    • (2)bbcode_quote
    • (1)footer
    • (1)forumjump
    • (1)forumrules
    • (1)gobutton
    • (1)header
    • (1)headinclude
    • (1)modsystem_post
    • (1)navbar
    • (4)navbar_link
    • (120)option
    • (1)pagenav
    • (1)pagenav_curpage
    • (3)pagenav_pagelink
    • (11)post_thanks_box
    • (11)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (11)post_thanks_postbit_info
    • (10)postbit
    • (3)postbit_attachment
    • (11)postbit_onlinestatus
    • (11)postbit_wrapper
    • (1)spacer_close
    • (1)spacer_open
    • (1)tagbit_wrapper 

    Phrase Groups Available:
    • global
    • inlinemod
    • postbit
    • posting
    • reputationlevel
    • showthread
    Included Files:
    • ./showthread.php
    • ./global.php
    • ./includes/init.php
    • ./includes/class_core.php
    • ./includes/config.php
    • ./includes/functions.php
    • ./includes/class_hook.php
    • ./includes/modsystem_functions.php
    • ./includes/functions_bigthree.php
    • ./includes/class_postbit.php
    • ./includes/class_bbcode.php
    • ./includes/functions_reputation.php
    • ./includes/functions_post_thanks.php 

    Hooks Called:
    • init_startup
    • init_startup_session_setup_start
    • init_startup_session_setup_complete
    • cache_permissions
    • fetch_threadinfo_query
    • fetch_threadinfo
    • fetch_foruminfo
    • style_fetch
    • cache_templates
    • global_start
    • parse_templates
    • global_setup_complete
    • showthread_start
    • showthread_getinfo
    • forumjump
    • showthread_post_start
    • showthread_query_postids
    • showthread_query
    • bbcode_fetch_tags
    • bbcode_create
    • showthread_postbit_create
    • postbit_factory
    • postbit_display_start
    • post_thanks_function_post_thanks_off_start
    • post_thanks_function_post_thanks_off_end
    • post_thanks_function_fetch_thanks_start
    • post_thanks_function_fetch_thanks_end
    • post_thanks_function_thanked_already_start
    • post_thanks_function_thanked_already_end
    • fetch_musername
    • postbit_imicons
    • bbcode_parse_start
    • bbcode_parse_complete_precache
    • bbcode_parse_complete
    • postbit_attachment
    • postbit_display_complete
    • post_thanks_function_can_thank_this_post_start
    • pagenav_page
    • pagenav_complete
    • tag_fetchbit_complete
    • forumrules
    • navbits
    • navbits_complete
    • showthread_complete