Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > Management Articles

Reply
 
Thread Tools
Speed Up Your Forums! vBulletin 4!
ChopSuey
Join Date: Jun 2009
Posts: 2,140

I like to go out hunting, fishing, walking, and hang out with friends.

Alaska
Show Printable Version Email this Page Subscription
ChopSuey ChopSuey is offline 02-26-2010, 10:00 PM

Hopefully this article will help your slow vBulletin 4 forum speed up a bit.

1. First of all, here are some admincp settings you can set, credit to eva2000
Quote:
For vB 4.x try to DISABLE = set to NO these options

Admin CP -> vBulletin Options -> General Settings -> Use Quick Navigation Menu

Admin CP -> vBulletin Options -> General Settings -> Thread/Forum Read Marking Type - Database automatic forum marking is very processor intensive compared to Inactivity/Cookie based or Database no automatic forum marking, so if your mysql process is constantly pegged at 100+ % cpu usage, you don't want to be using automatic forum marking Database type.

Admin CP -> vBulletin Options -> Forums Home Page Options -> Display Logged in Users?

Admin CP -> vBulletin Options -> Forum Home Page Options -> Display Today's Birthdays?

Admin CP -> vBulletin Options -> Forum Home Page Options -> Display Calendar Events?

Admin CP -> vBulletin Options -> Forum Display Options (forumdisplay) -> Show Users Browsing Forums

Admin CP -> vBulletin Options -> Thread Display Options -> Show Users Browsing Thread

Admin CP -> vBulletin Options -> Thread Display Options -> Check Thread Rating

Admin CP -> vBulletin Options -> Thread Display Options -> Check Thread Subscription (disable to check if it's load related if not re-enable it)

Admin CP -> vBulletin Options -> Thread Display Options -> Full Next / Prev Links

Admin CP -> vBulletin Options -> Message Searching Options -> Automatic Similar Thread search

Try to ENABLE = set to YES these options

AdminCP -> vBulletin Options > Cookies and HTTP Header options -. Enable GZip HTML Output - Set to 1 for optimum results.

Admin CP -> vBulletin Options -> Message Searching Options -> Queue Search Updates

Admin CP -> vBulletin Options -> Message Searching Options -> Search Result Sharing
2. Store CSS As files - more info here

Quote:
A complex CSS stylesheet can occupy quite a block of text when printed out in full. This entire block of CSS code must be included with every page viewed by your visitors, and with a lot of visitors over a long period of time this can mount up.

One of the beauties of CSS is that the stylesheet can be held in a separate file from the HTML content, allowing web browsers to store the CSS in their cache, negating the need to reload the stylesheet with every page viewed.

vBulletin allows you to have your stylesheets automatically saved to files by the system, resulting in lower bandwidth usage and faster-loading pages for your visitors.

To enable vBulletin to save your stylesheets as files, you must first ensure that your web server has permission to write and delete files within the clientscript/vbulletin_css directory.

You should then go to vBulletin Options > Style & Language Settings and switch the Store CSS Stylesheets as Files? setting to Yes.
After pressing the [Save], your stylesheets will be converted to files and saved into the clientscript/vbulletin_css directory.

Whenever you make a change to your styles that alters the CSS, the stored files will automatically be updated.
3. Enabling Datastore

To improve performance, vBulletin caches certain information which isn't updated often in the datastore, so that it doesn't have to be rebuilt every time it's needed.

Examples for this are

* forumcache - A serialized array with all the forums along with their options and permissions
* options - A serialized array with all the information set in the vBulletin Options
* profilefield - A serialized array of all the profile fields and their options.

The datastore data is stored in the datastore database table by default, but certain settings in the config.php file allow this to be saved in other places, to improve performance:
PHP Code:
 // ****** DATASTORE CACHE CONFIGURATION *****
 // Here you can configure different methods for caching datastore items.    
 // vB_Datastore_Filecache  - for using a cache file
 // $config['Datastore']['class'] = 'vB_Datastore_Filecache';    
 // vB_Datastore_Memcached - for using a Memcache server    
 // It is also necessary to specify the hostname or IP address and the port the server is listening on
 // $config['Datastore']['class'] = 'vB_Datastore_Memcached';
 // $config['Misc']['memcacheserver'] = '127.0.0.1';
 // $config['Misc']['memcacheport'] = '11211'; 
vB_Datastore_Filecache
This option saves the datastore data in the /includes/datastore/datastore_cache.php file. Reading from the filesystem is generally less load-intensive than querying the database.

To use this option, you'll need to make sure that the /includes/datastore/datastore_cache.php file is writable and readable by PHP. Usually this is chmod 777. Then, uncomment the following line in the config.php file.

(If your on a VPS or Dedi install XCache its faster than others. How to - Install Guide

4. Get rid of those rounded corners! Credit to Andy, original post here.
One reason vB4 is slower than vb3 is the use of shading and rounded corners. Add this to the bottom of the additional.css template and your forum will speed up considerably.
PHP Code:
* { -moz-box-shadownone !important; }
* { -
webkit-box-shadownone !important; }

* { -
moz-border-radius0px !important; }
* { -
webkit-border-radius0px !important; } 
Feedback from users, saying their forum loads faster.

5. [S]Install vB4 Supercharged[/S] download it here. It does NOT work on 4.0.2 PL1 just yet, we have to wait until the author has updated the modification.

6. vBulletin 4 optimize htaccess - add those contents to your htaccess.

7. Add to top of headinclude
HTML Code:
<META http-equiv=Page-Exit content=BlendTrans(Duration=0)>
<META http-equiv=Page-Enter content=BlendTrans(Duration=0)>
8. Download YSLow - add the contents to your htaccess.

9. You can Improve Page Loading Time

10. Enable Remote YUI:
Quote:
YUI (Yahoo! User Interface Library) script files are hosted locally on your server, you may however have them served from Yahoo or Google servers, saving you some bandwidth and potentially decreasing load times.
AdminCP > Settings > Server Settings And Optimization Options > Remote YUI to YES - Prefer Google.

11. In addition to this, check out articles from one of the worlds largest webmaser forums.

Optimize vBulletin 4

If you are using Memcached servers:

Monitor memcached servers with vBulletin

Thats it! If your forums have sped up a bit please let me know, if they have not and your using a VPS or Dedicated server, request for a server optimization.

https://vborg.vbsupport.ru/showthread.php?t=241782
https://vborg.vbsupport.ru/showthread.php?t=241783
More optimization
Reply With Quote
  #12  
Old 05-30-2010, 04:42 AM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Added a few options to the article.
Reply With Quote
  #13  
Old 06-01-2010, 01:29 PM
pant pant is offline
 
Join Date: Mar 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Turned on the mem cache fetaure to file. Will keep an eye on this.

Also have all pictures/avatars/profile pic/attachments stored to file system.

CSS saved as files.

Anything else to consider?
Reply With Quote
  #14  
Old 06-01-2010, 04:29 PM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add some info to the article on the bottom, install OptiPNG
Reply With Quote
  #15  
Old 07-19-2010, 03:30 AM
ranz ranz is offline
 
Join Date: Dec 2005
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some of this stuff may have some impact.

However, I still feel a lot of this has to do with client side and server side.

On the server side, there are a lot of people who are hosting their sites with big over-crowded shared hosting companies.

Consider this: when you got Windows 7, did you still run it on the same PC that ran Windows XP? no is most likely your answer.

Upgrade your host or your server - get them to tell you their server specs, and how many other users are sharing your server.

The client side stuff: Safari is the faster of the mainstream browsers to date. I've check VB4 in Safari, and am impressed with it's speed. No major issues vs VB3.8.
Reply With Quote
  #16  
Old 07-22-2010, 04:45 PM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChopSuey View Post
Ip Board, i haven't used it since maybe 08 ? But its a good software, you want a real forum? Stick with vBulletin


I know its bad.
sometimes we don't think about who is writing this stuff in here, chop suey was only 16 or 17, some of the critic of this article is a little harsh, now looking back on his suicide its easier to see he had issues, with criticism.

I know its bad
Reply With Quote
  #17  
Old 08-02-2010, 06:11 PM
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Location: Rome
Posts: 730
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I bought vb_optimizer pro and done with it. lol
it have saved me 98,000 queries in 2 days
Reply With Quote
  #18  
Old 08-20-2010, 10:36 PM
MogKnight MogKnight is offline
 
Join Date: Aug 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do you edit "additional.css"?
Reply With Quote
  #19  
Old 08-30-2010, 09:57 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChopSuey View Post
4. Get rid of those rounded corners! Credit to Andy, original post here.
One reason vB4 is slower than vb3 is the use of shading and rounded corners. Add this to the bottom of the additional.css template and your forum will speed up considerably.
PHP Code:
* { -moz-box-shadownone !important; }
* { -
webkit-box-shadownone !important; }

* { -
moz-border-radius0px !important; }
* { -
webkit-border-radius0px !important; } 
Feedback from users, saying their forum loads faster.
Measurements with Firebug showed no speed increase after removing the rounded corners.
It is a browser site rendering process and has nothing to do with the page request so the "speed effect" totally depends on the hardware specs of the visitor.
Reply With Quote
  #20  
Old 09-30-2010, 07:50 PM
fatmouse fatmouse is offline
 
Join Date: Nov 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there

In an effort to speed up my site, I stored css sheets as files.

However when I do that, my backgound image (in doc_background) doesn't work.

If I switch back to not storing css as files...the background image works again.

Anyway I can store css as files and still keep my background image?

Thanks

Cheers
Reply With Quote
  #21  
Old 10-04-2010, 01:00 PM
fatmouse fatmouse is offline
 
Join Date: Nov 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no one??
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 09:11 AM.


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.09356 seconds
  • Memory Usage 2,327KB
  • Queries Executed 25 (?)
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_html
  • (3)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete