Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
YSLOW 1.0.3 (Make Your Forum Faster) Details »»
YSLOW 1.0.3 (Make Your Forum Faster)
Version: 1.0.3, by Jack0919 Jack0919 is offline
Developer Last Online: Jun 2011 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.7.0 Rating:
Released: 05-05-2008 Last Update: 05-15-2008 Installs: 706
Additional Files Translations  
No support by the author.

Info
==============================

This mod can make your vbulletin seem faster.

It works only with apache. It works with VB 3.5.X, VB 3.6.x, VB 3.7.x ...


How it works: http://developer.yahoo.com/yslow/




Update
==============================
1.0.1 First release.
1.0.2 Correct the problem of the Charset.
1.0.2 fix the bug [s]that's not work with vbseo.[/s]
1.0.2 fix the bug [s]by forum on the different directory[/s].
1.0.3 A very important update for safe.
1.0.3 fix the bug [s]that YSLOW do PHP source reads.[/s]
1.0.3 【Thanks very much to bahisyeri
1.0.3 Adjustment server load and speed to an acceptable set .



INSTALLED
==============================

If you have any piont please leave your replay, and it will be helpful.

IF YOU LIKE IT , PLEASE MARK AS INSTALLED


What does it do?
==============================

Add an Expires header


Adding an Expires header to your components with a date in the future makes them cacheable, reducing the load time of your pages. Certainly this should be done with images, but that's fairly typical. Go a step further and add it to scripts and stylesheets, too. This won't affect performance the first time users hit your page, but on subsequent page views it could reduce response times by 50% or more.

Gzip componentes

Gzipping all the js and css files types to reduce page weight. The greatest advantage is compressed to reduce the amount of data transmission network, thereby improving the client browser access speed. Of course, but also increase the burden on the server a little bit. Gzip is a more common form of HTTP compression algorithm.

Configure ETags

1. Client requests a page (A).
2. The server Back to A, and A to add a ETag.
3. Client display the page, and pages together with the ETag cache.
4. Customers once again request pages A, and the last request to the server to return to the ETag transmitted to the server.
5. Server checks the ETag, and to determine the page since the last client request has not been modified, to return to direct response to a 304 (Not Modified) and a response of the air.
So. ETag is a Tag to your components to see if they has been modified. If not here will be no request happened. Configure it is a good way.

Easy Install
==============================

1. Upload all the content to your forum directory.
2. There is no step two. It's done.

UNinstall
==============================

1. Remove all.
2. Done.

If
==============================

If the mod does not work,open and edit httpd.conf like this:
find:
#LoadModule rewrite_module modules/mod_rewrite.so
remove # as:
LoadModule rewrite_module modules/mod_rewrite.so
save, and restart apache, then it's should be OK.
-------------------------------------------------
IF there has a .htaccess File in your forum root directory yet, Do not cover it, open the .htaccess in the zip,copy all the code,add below your own .htaccess.
-------------------------------------------------

Show Your Support

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

Comments
  #142  
Old 05-13-2008, 09:11 PM
Deimos Deimos is offline
 
Join Date: Oct 2002
Posts: 529
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stubbed View Post
I've personally used the htaccess rules, leaving out the modrewrite rule and redir.php.
Could you post a copy of the htaccess file coding you used?
Thanks
Reply With Quote
  #143  
Old 05-13-2008, 09:17 PM
thefifthlord thefifthlord is offline
 
Join Date: Mar 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stubbed View Post
I really like where the mod designer is coming from, sadly the execution is a bit flawed.

On a small forum, this will be fine, but on a large forum the extra load it would create by gzipping everything in real time would offset the original goal of the modification, as shown by several people already.

I've personally used the htaccess rules, leaving out the modrewrite rule and redir.php.

Please make sure you read the previous post before saying the exact same thing i did and also to Deimos use this:
Code:
# Turn on Expires and set default to 0 ExpiresActive On ExpiresDefault A0 # Set up caching on media files for 1 year (forever?) ExpiresDefault A29030400Header append Cache-Control "public"# Set up caching on media files for 1 weekExpiresDefault A604800Header append Cache-Control "public, proxy-revalidate"# Set up 2 Hour caching on commonly updated filesExpiresDefault A7200Header append Cache-Control "private, proxy-revalidate, must-revalidate"# Force no caching for dynamic filesExpiresDefault A0Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"Header set Pragma "no-cache"
And yes it works on ALL VERSIONS OF VBULLETIN with no problem. However if you have an ajax based shoutbox you might incur some problems, just use the code i told demios to use above and get rid of the redir.php. Lastly it works with all versions of VBSEO
Reply With Quote
  #144  
Old 05-13-2008, 09:25 PM
Deimos Deimos is offline
 
Join Date: Oct 2002
Posts: 529
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Fifth
I assume it's working, no errors or anything, hehe.
Reply With Quote
  #145  
Old 05-13-2008, 09:26 PM
KHALIK KHALIK is offline
 
Join Date: May 2005
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thefifthlord View Post
Please make sure you read the previous post before saying the exact same thing i did and also to Deimos use this:
Code:
# Turn on Expires and set default to 0 ExpiresActive On ExpiresDefault A0 # Set up caching on media files for 1 year (forever?) ExpiresDefault A29030400Header append Cache-Control "public"# Set up caching on media files for 1 weekExpiresDefault A604800Header append Cache-Control "public, proxy-revalidate"# Set up 2 Hour caching on commonly updated filesExpiresDefault A7200Header append Cache-Control "private, proxy-revalidate, must-revalidate"# Force no caching for dynamic filesExpiresDefault A0Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"Header set Pragma "no-cache"

That code is in one line, does not seem normal for htaccess, can you re-post the code properly as I am also interested.


or where do I put it ?
Reply With Quote
  #146  
Old 05-13-2008, 09:31 PM
KHALIK KHALIK is offline
 
Join Date: May 2005
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Deimos,

can you tell me where to put Fifth code?

or can you post your copy of htaccess and redir.php please.
Reply With Quote
  #147  
Old 05-14-2008, 12:19 AM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jack0919 View Post
Obviously, I am not a good coder as you.

I made "such an hack" by my lack of technology. Since I put this mod on here, I update 2 times in 3 days to correct problem. And this is my first time that I try to talk to other pepole in my poor English.

However, I'm very sorry because this mod make some of the users bothering.

May be I should not put this mod on here utill it's matured. But all I think is share "such an hack".
I think you are doing great. At current speed we should see Vbulletin 4.0 sometime around 2010. So in the meantime please keep up the good work!
Reply With Quote
  #148  
Old 05-14-2008, 02:31 AM
Stubbed's Avatar
Stubbed Stubbed is offline
 
Join Date: Dec 2007
Location: New Zealand
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KHALIK View Post
That code is in one line, does not seem normal for htaccess, can you re-post the code properly as I am also interested.

or where do I put it ?
This is a better example, put it in an .htaccess file in your forum root, or website root, is better if you can get it in your apache config however.

Code:
# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0
 
# Set up caching on media files for 1 year (forever?)
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
ExpiresDefault A29030400
Header append Cache-Control "public"
</FilesMatch>
 
# Set up caching on media files for 1 week
<FilesMatch "\.(gif|jpg|jpeg|png|swf)$">
ExpiresDefault A604800
Header append Cache-Control "public"
</FilesMatch>
 
# Set up 2 Hour caching on commonly updated files
<FilesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
</FilesMatch>
 
# Force no caching for dynamic files
<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>
http://www.askapache.com/htaccess/sp...e-control.html
Reply With Quote
  #149  
Old 05-14-2008, 11:00 AM
Jack0919's Avatar
Jack0919 Jack0919 is offline
 
Join Date: Dec 2005
Location: China
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stubbed View Post
This is a better example, put it in an .htaccess file in your forum root, or website root, is better if you can get it in your apache config however.

Code:
# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0
 
# Set up caching on media files for 1 year (forever?)
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
ExpiresDefault A29030400
Header append Cache-Control "public"
</FilesMatch>
 
# Set up caching on media files for 1 week
<FilesMatch "\.(gif|jpg|jpeg|png|swf)$">
ExpiresDefault A604800
Header append Cache-Control "public"
</FilesMatch>
 
# Set up 2 Hour caching on commonly updated files
<FilesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
</FilesMatch>
 
# Force no caching for dynamic files
<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>
http://www.askapache.com/htaccess/sp...e-control.html
Your code is much better than mine.

Do you mind if I take some of your code to my next version YSLOW?
Reply With Quote
  #150  
Old 05-14-2008, 02:12 PM
ayaam ayaam is offline
 
Join Date: Aug 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tried , thanks
Reply With Quote
  #151  
Old 05-14-2008, 06:33 PM
PGAmerica PGAmerica is offline
 
Join Date: Mar 2008
Posts: 405
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This crashes my 3.7.0 forums. In the ACP, the images do not display and most of the ACP options stop working. In the forums, the images do not display at all.
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 04:51 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.08928 seconds
  • Memory Usage 2,326KB
  • 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
  • (4)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete