1. مهمان گرامی، جهت ارسال پست، دانلود و سایر امکانات ویژه کاربران عضو، ثبت نام کنید.
    بستن اطلاعیه

vB4 - هک افزایش سرعت انجمن با vB Accelerator

شروع موضوع توسط P4NiSh3R ‏2/8/11 در انجمن vBulletin

  1. کاربر فوق حرفه ای

    تاریخ عضویت:
    ‏1/12/10
    ارسال ها:
    4,897
    تشکر شده:
    1,871
    امتیاز دستاورد:
    0
    نحوه نصب ساده هست فقط :
    1. باید همه اتچ ها روی هاست باشه نه دیتابیس.
    2. هک باید ایمپورت شه .
    3. این هک خیلی به تنظیمات سرور بستگی داره و ممکنه روی هر سایتی کار نکنه.
    موفق باشید
    توضیحات انگلیسی :
    کد:
    [LEFT]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?
    In original vB all thumbnails a downloaded via php. So if you page contains 10-20 attached images, then each page php request will be followed by 10-20 thumbnails php requests. That's very bad.
    When attachments body transfered via php, that's much more waisteful, than direct transfer of static file. Especially for big files.
    Browser does lots of additional requests to static file,to check if modified
    JS/CSS not compressed
    What This Mod Does:
    All thumbnails will have DIRECT links (served as static files). Much lower reply latency and server load.
    If you have nginx webserver, you php-fcgi will not participate in file transfer any more. It will reply with X-Accel-Redirect header.Then nginx will proceed attachment as static file.
    No more problems with multiple downloads of 10-mb files.
    No needs to restrict attachments and full-size images for guests and search bots.
    Static files are properly cached/compressed after tuning
    Install:
    Make sure, attachments are stored on disk, NOT in database.
    Make sure, that thumbnails are in web-accessible area. If not - reconfigure your web-server first.
    Check manually, that you can download any .thumb file via browser.
    !!! Tune cache/compression settings for static files (see example from next post)
    Import product XML & tune settings.
    Enjoy
    This mod is developped here: http://github.com/rcdesign/vb-accelerator . Patches are welcome.
    
    History:
    
    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[/LEFT]
    منبع: وی بی ایران
     

    پیوست ها: