vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - YSLOW 1.0.3 (Make Your Forum Faster) (https://vborg.vbsupport.ru/showthread.php?t=178286)

Jack0919 05-12-2008 05:37 PM

Quote:

Originally Posted by apn3a (Post 1517279)
I've tried installing this hack. works perfectly on my forum (makes it really fast); however, it screws up another software i run on my domain. The problem seems to be in under compressing java files. My other software has a dhtml menu (which includes java files), and it disappears whenever i install this hack. Also the images take a while to load. Any thoughts?

try this:

edit .htaccess find
RewriteRule ^(.*)(js|css|gif|jpg)$ redir.php?file=$1$2&type=$2 [L]
coverd as
RewriteRule ^(.*)(css|gif|jpg)$ redir.php?file=$1$2&type=$2 [L]

soundbarrierpro 05-12-2008 07:45 PM

I tried this too, definitely speeded up my site. Problem was if you hit refresh or hit f5 all CSS formatting went out of whack. Every color went white and all font went Times New Roman. Any ideas why? I have to use refresh to monitor visitors.

Jack0919 05-12-2008 07:57 PM

Quote:

Originally Posted by soundbarrierpro (Post 1517578)
I tried this too, definitely speeded up my site. Problem was if you hit refresh or hit f5 all CSS formatting went out of whack. Every color went white and all font went Times New Roman. Any ideas why? I have to use refresh to monitor visitors.

eh? That's a rare issue, My I have the favor to get your url of the vbulletin?

I'll check what's the problem with it.

soundbarrierpro 05-12-2008 08:00 PM

Quote:

Originally Posted by Jack0919 (Post 1517590)
eh? That's a rare issue, My I have the favor to get your url of the vbulletin?

I'll check what's the problem with it.

It's not installed now. I had it installed but removed it because it only did it when I installed MGC Chat or Cinvins RSS mods.

Coop1979 05-12-2008 08:40 PM

Did anyone watch their server loads after installing this? My loads tripled.

It may provide some speed for my end users, but I'm not going to use it at the cost of server performance.

Jack0919 05-12-2008 09:00 PM

edit .htaccess find
RewriteRule ^(.*)(js|css|gif|jpg)$ redir.php?file=$1$2&type=$2 [L]
coverd as
RewriteRule ^(.*)(js|css)$ redir.php?file=$1$2&type=$2 [L]

And test it again. I need the Number to improve the mod. thanks.

peterpigman 05-12-2008 10:02 PM

Quote:

Originally Posted by Coop1979 (Post 1517633)
Did anyone watch their server loads after installing this? My loads tripled.

It may provide some speed for my end users, but I'm not going to use it at the cost of server performance.

Yeah it does seem to add quite a bit of load.

Coop1979 05-12-2008 10:03 PM

Without YSlow:
1.36

With YSlow (using amended htaccess code above):
Holding at around 2.34

I was normally below 1 prior to adding the YSlow. Right now is a slow time on my server so I'm worried what will happen during a traffic surge.

maxicep 05-12-2008 10:14 PM

Thanks

installed

its working perfect i think :)

pedroenf 05-12-2008 11:57 PM

Great great mod. This is definitely MOTY (year) for me. Very nice work.

Jack0919 05-13-2008 03:32 AM

Quote:

Originally Posted by maxicep (Post 1517703)
Thanks

installed

its working perfect i think :)

:confused::confused::confused::confused:
you have not mark the not installed yet.

vietdjclub 05-13-2008 03:37 AM

working perfect.thx

thefifthlord 05-13-2008 04:18 AM

Very nice, however you are adding a lot of unnecessary load by constantly redirecting images through redir.php ; gziping may reduce bandwidth, but it slows the server down.

A better fix would be:

Put this in your .htaccess file:
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"

Stubbed 05-13-2008 08:59 AM

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.

Jack0919 05-13-2008 01:45 PM

I didn't like my goverment for a long time, I think the goverment are antagonistic to the people.

but since 2008.4.13 some media inaccurate I changed my mind. Now I try to understand my goverment and then I find how good it is.

Well,The advice you take is very important to me. I will try to find a way to balance the load and speed.

welcome to China,the Chinese is trying all the best to give you a happy and unforgettable journey.

mykkal 05-13-2008 02:04 PM

does this work with VB 3.7?

993ti 05-13-2008 02:08 PM

Yes, it does ;)

mykkal 05-13-2008 02:40 PM

does this work fine with VBSEO now? Or are people still doing a lot of troubleshooting?

Jack0919 05-13-2008 02:56 PM

it work fine with vbseo, however, there is stil have few troubleshooting if you have use the mod like chatbox....

KHALIK 05-13-2008 09:08 PM

Quote:

Originally Posted by wd4x4 (Post 1512254)
URL's work Pics & e-mail link don't here in IE. FF all ok. no vbSEO.

same problem.

fixed it with re-installing ieprompt.html

Deimos 05-13-2008 09:11 PM

Quote:

Originally Posted by Stubbed (Post 1518050)
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 :)

thefifthlord 05-13-2008 09:17 PM

Quote:

Originally Posted by Stubbed (Post 1518050)
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

Deimos 05-13-2008 09:25 PM

Thanks Fifth :)
I assume it's working, no errors or anything, hehe.

KHALIK 05-13-2008 09:26 PM

Quote:

Originally Posted by thefifthlord (Post 1518771)
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 ?

KHALIK 05-13-2008 09:31 PM

Deimos,

can you tell me where to put Fifth code?

or can you post your copy of htaccess and redir.php please.

trackpads 05-14-2008 12:19 AM

Quote:

Originally Posted by Jack0919 (Post 1513825)
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! :)

Stubbed 05-14-2008 02:31 AM

Quote:

Originally Posted by KHALIK (Post 1518783)
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

Jack0919 05-14-2008 11:00 AM

Quote:

Originally Posted by Stubbed (Post 1518986)
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?

ayaam 05-14-2008 02:12 PM

tried , thanks

PGAmerica 05-14-2008 06:33 PM

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.

blastup 05-16-2008 02:36 AM

awesome tested it thanks

Stubbed 05-16-2008 07:49 AM

Quote:

Originally Posted by Jack0919 (Post 1519233)
Your code is much better than mine.

Do you mind if I take some of your code to my next version YSLOW?

I can't take credit for the code, I just found it on the url I posted.. :)

Jack0919 05-16-2008 08:59 AM

An very important update for safe. please update it, thanks.

mastertek2000 05-16-2008 10:46 AM

thanks MT marked install

Arbit3r 05-16-2008 10:54 AM

I run a forum with 1200+ online at a time, and it seems to have made an impact on server load. But to be sure is there anyway to know for sure if it is working?

edit: Sent a few $ through paypal for you.

Super Jinni 05-16-2008 11:15 AM

installed

thanks

abrecher 05-16-2008 11:21 AM

Are there any changes to the .htaccess file from 1.0.2 to 1.0.3 ?

Jack0919 05-16-2008 03:08 PM

Quote:

Originally Posted by Arbit3r (Post 1521470)
I run a forum with 1200+ online at a time, and it seems to have made an impact on server load. But to be sure is there anyway to know for sure if it is working?


edit: Sent a few $ through paypal for you.

Thank you very much.

For a big site, if the most of your user is member, this mod affect services very little, but if the most of your user is guest, it does made an impact on server load.

This mod will work since you upload it,If you want to make sure that you can download the plugin for firefox: http://developer.yahoo.com/yslow/

Thanks again.

Jack0919 05-16-2008 05:26 PM

Quote:

Originally Posted by abrecher (Post 1521498)
Are there any changes to the .htaccess file from 1.0.2 to 1.0.3 ?

Yes, there are. I stop the gif and jpg gzip, because it made much impact on server load

ogameclub 05-16-2008 06:38 PM

Thanks,
I added this code below the .htacces and zointsseo-2.2.2 is worked:
HTML Code:

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^([a-z0-9_\-]*-(f|all)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ forumdisplay.php/$1 [QSA,L]
RewriteRule ^([a-z0-9_\-]*-(t|p)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ showthread.php/$1 [QSA,L]
RewriteCond %{REQUEST_URI} !(index\.php|\.css) [NC]
RewriteRule ^(archive|sitemap)/(.*)$ $1/index.php/$2 [QSA,L]



All times are GMT. The time now is 05:50 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01605 seconds
  • Memory Usage 1,841KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete