![]() |
vB Accelerator
1 Attachment(s)
ported & significantly improved vb 3.8 branch.
This mod is suited for medium and big boards. It reduces server load, caused by thumnails and big attachments. Includes significant recommendations for server tuning, to speedup pages loading. what's the problem with?
history: 0.9 - fixed path for duplicated attachments 0.8 - fixed back timestamp parameter & substitutions for XML output - added conversion for assets.php thumbnails (in attachments manager) 0.7 - ported to vb4 - added basic CDN support for thumbnails |
Nginx config sample Code:
# Modified gzip settings: added CSS/JS, Apache config example TBD :) . Please, help to fill. |
Thanks... anyone tried it?
|
This looks good. thanks for sharing.
|
Updated mod to catch XML output & timestamp issues.
|
Will this work along side vbOptimize and vB4: Supercharged? Are there conflicts? Duplicated features?
|
Quote:
|
Oh cool, this looks like an improved version of my 'Attachment Optimiser' in vB4 SuperCharged - installed :)
|
Thanks
installed but i am not sour if it is working anyone tried it? waiting for tests |
Quote:
Optimizing the first page load is potentially interesting, but price in your case is very high - big server load and lots of possible conflicts. |
This is .htaccess on Nginx ?
PHP Code:
is full path like : /home/www/html/sites.com/attachment or just /attachment/ |
Quote:
|
Quote:
under my vBseo config :) its right ? |
Quote:
Supercharged have some interesting ideas, but not balanced, IMHO. The same result can be acheived with much less efforts & server load :) vb Accelerator - if you dont use attachments, skip it :) . But set "not expire" headers for static content. It really worth to do. |
Quote:
Other rewrites should be BEFORE vbseo. |
Can I use Mod Version: 0.8 with vbulletin 3.8.5?
|
NO. You should use version from this topic: https://vborg.vbsupport.ru/showthread.php?t=207566
|
Installed, but downloaded from other forum by accident. However, I don't see that the URL is changing. I still see attachment.php as part of the URL. Am I missing something here?
|
You should check thumbnails path, but not full-size attachments links.
If you have problems, please provide more detailed information. For example - incorrect thumbnails URLs |
ahh I see.. so this mod is used to change the thumbnails URL only, not the full image? I did simple checking (disabling and enabling this mod), and I saw what you meant. Thanks a lot!
Another question, the URL in my forum is like this: http://<domain hidden>/img/1/1.thumb?d=1276962745 Could you remove the query string parameter? It ruins the purpose of image caching, since the parameter value always changing while the image stays the same. |
Quote:
There can be 20 thumbs on thread page. But not 20 fullsize images, downloaded at once. Quote:
|
great! thanks!
|
Could you maybe do the same for image.php (to display user's avatar)? It's hard to cache image served by PHP script.
|
It's already done in vbulletin settings. Please, read vb manual. This mod is NOT buggy, and works properly. Really.
|
Do attachments themselves need to be in a public accessible area or just the thumbnails?
|
Just the thumbnails
|
Fact my thumbs seem tons faster to load thanks!!
now Vitaly could you explain this part please "CDN list Enter up to 4 mirror domains, to load local images faster. For example:" Thanks! Ps. how do i know if i have a NGINX websever lol sorry :x |
You'd better to read yahoo website optimization manuals.
In 2 words: 1. Browser allows only 2 parallel connections to each domain, and 8 total. 2. If you do mirrors for your images, it can download up to 8 images simultaniously 3. It's better to keep mirrors on separate domain, without cookies, to speed up requests That can make some sence, ONLY if you have tons of thumbnails on each single page. I did this feature for fun, and didn't meashured effect yet. Anyway, it's not as significant, as (direct links + proper cache headers for static files). Quote:
|
Quote:
Quote:
Thanks mate the speed on pages like >>This<< is tons better Nomination! |
Quote:
|
Quote:
so if i work out how to do above it will be even faster?:D |
Hello Vitaly,
in the AdminCP Options, at "Path to attachments", need to insert the patch of the thumb right? But it is the same of the attachments? If not, How can I find the correct path? I remember to have setup the attachments stored on disk, but I don't rememeber a specific path where are store my thumb. All my attachments are in : "forum/attachments" Thank you |
Try /forum/attachments or /attachments
It's easy to check: - open page source - check generated thumbnal paths - if not correct - play with setting to fix difference. Of cause, you should check, that thumbnails can be downloaded via www (that's mentioned in installetion steps). |
Quote:
|
Hmm have an odd issue. I have attachments on a subdomain along with all the url rewrites working. The attachment thumbnails show however when you click on the attachment image they do not load in the lightbox. Any advice?
I do run imagemagick of that has any effect. |
Do those work:
- if you switch off lightbox - if you switch off this mod ? The other way to check is to install firebug addon for firefox, and check what happens in network tab when image fails to load. |
Turns out I am getting 404 errors on the lightbox and if I load the attachment directly. If I disable this mod the attachments work fine and the thumbs still work.
So it seems something from this mod is breaking the attachments themselves. |
Can you check with firebug, which URL failed for lightbox?
|
Played with it some more it turns out its the X-Accel-Redirect. Updated my NGINX just to make sure it wasnt a bug.
Failing URL is http://immortal-guild.net/attachment...1&d=1271597314 |
This mod doesn't affect fullsize attachments, if you turn off "nginx acceleration" option.
If problem caused by this option, then absolute disk path can be wrong, or some rare nginx limitation for X-Accel-Redirect (see docs). |
All times are GMT. The time now is 10:24 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|