vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Board Optimization - Attachment Optimiser (https://vborg.vbsupport.ru/showthread.php?t=229061)

Darkimmortal 11-27-2009 10:00 PM

Attachment Optimiser
 
1 Attachment(s)
DEPRECATED - This is now merged with vB4: SuperCharged



vBulletin's attachment.php can cause a mini DoS on a FastCGI setup when images are set to display inline (or even with thumbnails, if you have enough of them on one page).

This mod assumes that your attachments are stored on the filesystem and are accessible via http://yourdomain.com/customattachments.

This mod also assumes that your are using nginx along with FastCGI. If you are using lighttpd etc. you will need to translate the config into something that works with lighty. If you are using Apache or a similar threaded webserver, that's your problem and this is no use to you.

What it does is turns this:

Code:

/attachment.php?attachmentid=246&stc=1&d=1213237132
Into this:

Code:

/customattachments/4/9/246.attach?.jpg
Which basically means your attached images load considerably faster and your forum lags a lot less.


To install, simply upload the attached .xml file as a plugin and add the following to your domain in nginx.conf:

Code:

location /customattachments {
        if ($request_uri ~* \.(png)) {
                add_header Content-Type image/png;
        }
        if ($request_uri ~* \.(jpg|jpeg)) {
                add_header Content-Type image/jpeg;
        }
        if ($request_uri ~* \.(gif)) {
                add_header Content-Type image/gif;
        }
}

Another mod which improves your FastCGI performance is my CSS Optimiser. ;)

abdobasha2004 11-28-2009 11:15 PM

nice one
reserved
however the whole url system is still not suitable for non-English forums
reserved

Dr.osamA 11-30-2009 09:53 PM

try

thnxx man
________
BUY EASY VAPE VAPORIZER

milsirhc 12-05-2009 09:57 PM

Anyone using lighttpd that is able to translate this?

EagleNick 12-06-2009 01:36 AM

Does this also mean that due to the .jpg extension, search engine spiders will have an easier time indexing/crawling the attached images? My forum is very photo (attachment)-heavy, but I've never had any luck getting Google to index any of the attachments.

Secondly, do you plan to release something like this for 3.8?

Darkimmortal 12-06-2009 04:19 AM

Quote:

Originally Posted by EagleNick (Post 1926063)
Does this also mean that due to the .jpg extension, search engine spiders will have an easier time indexing/crawling the attached images? My forum is very photo (attachment)-heavy, but I've never had any luck getting Google to index any of the attachments.

Secondly, do you plan to release something like this for 3.8?

http://images.google.com/images?q=inurl%3Agamingmasters

Only avatars and signatures there, so I'd assume no. :( Or perhaps it is the lack of title/alt tags on the images?

I'll have to look into making a rewrite so there's no need for the ? (which is probably what is stopping google from indexing the images).

And it's simple enough that it might just work on 3.8 without any changes.

SİMAR 12-06-2009 01:58 PM

thanks


All times are GMT. The time now is 03:05 PM.

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.01578 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete