vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Board Optimization - [DBTech] vB Optimise 2.0.1 (Lite) (https://vborg.vbsupport.ru/showthread.php?t=199207)

Deceptor 12-18-2008 10:00 PM

[DBTech] vB Optimise 2.0.1 (Lite)
 
1 Attachment(s)
vB Optimise Lite

The newly revamped vB Optimise was created for vBulletin 4, but has now been made compatible for vBulletin 3.8. In this release I have re-coded vB Optimise from the gound and focused stability over features, you'll notice Phrase Caching and vBAdvanced Integration have bit the dust, this is to maintain a sync state between this version and the vBulletin 4 release.

Professional version & feature list available @ www.DragonByte-Tech.com/forum
Priority support for Lite version is handled at the Developers Website.


What does it do?

vB Optimise is intended to optimise vBulletin software by integrating several PHP "cachers" and handling data before vBulletin. This works by encountering and handling data prior to vBulletin in order to skip the arbitary execution that would be more server intensive.

Real-Life Statistics

We've teamed up with some Big Forums to show you the impact of vB Optimise, you can view this public chart which shows both our statistics and theirs:

View Public vB Optimise Resource Statistics

Features
  • Supported Extensions
    • APC
    • eAccelerator
    • Memcache
    • XCache
    • WinCache
    • Filecache
  • Style Cacher
    Caches style data to globally reduce a query within all vBulletin forum-based pages.
  • Template Cacher
    Caches template data to globally reduce a query within all vBulletin forum-based pages.
  • Datastore Cacher
    Forces custom datastore items from modifications (including those from vB's blogs) to use your configured Datastore Cache method instead of being forced into the database. This reduces page queries by where affected.
  • vB CMS Template Caching
    (Automatic) Corrects many uncached templates within vB CMS to reduce upto 20+ queries on CMS pages (number varies based on content).
  • Optimal Settings Check
    Provides a quick interface to identify possible settings which can be changed on your forum for further optimisation.
  • Self-System Tester
    Provides a relatively straight-forward system check to ensure your vB Optimise installation works fully.
  • Automatic Cache Flusher
    Automatically flushes cache within the Admin CP based on specific triggers to make sure content does not remain stale on your forum.
  • XCache Authentification
    Supports XCache Admin Authentification by allowing you specify the username/password in a configuration if needs be.

Features - Pro
  • Notices Cacher
    Caches users dismissed notices to reduce a near-global query within all vBulletin forum-based pages.
  • Showgroups Cacher
    Caches the showgroups query which becomes more intensive as your user-base grows.
  • Forum Display Query Enhancement
    Enhances a stock vBulletin query within Forum Display to speed up the page.
  • Forum Home WOL Cache
    Caches Forum Home "Who's Online" to remove an intensive query and allow larger sites to display this data without impact.
  • vB Cache Override (Feature not available on vBulletin 3)
    Ability to override vBulletins new built-in database cacher for the CMS / Forum Sidebar Blocks to remove anything from 1 to 20+ queries based on your content.
  • Full Guest Caching
    Ability to cache entire pages and serve them saving not only hundreds of queries but upto 90% of CPU processing towards Guests.
  • Statistical Resource Savings
    Ability to see just exactly how many queries per day vB Optimise has saved your database. You'll be surprised at the numbers.
  • Forum Resource Statistic
    Shows off vB Optimise resource saving statistics directly within forumhome statistics.
  • ....and more!

Release Notes

If you've used vB Optimise before you'll be aware the previous version had phrase caching, however this caused complications with the way phrases are used within vBulletin so it has not been ported over at this time.


Available Translations
v1.6.0 French - Thanks to finereader

Change Log

[>>] Version 2.0.1
New launch for vB 3.8

[>>] Version 1.6.1
Automatic Cache Flusher has additional parameters to make sure no data is stale
Resolved Bug: Potential PHP error when using eAccelerator which cannot flush within Admin CP on certain actions

[>>] Version 1.6.0
New OpCode Cacher Support: WinCache

[>>] Version 1.5.0
Resolved Bug: Style cache may have fetched ID 0 instead of correct file
Resolved Bug: Filecache permissions may not have worked
Optimisation: Re-wrote some base code to enhance operations.

[>>] Version 1.0.1
Added XCache Authentification Support
Added Filecache Support

Support

Priority support will be handled at DBTech.

FAQ

Q: I have WinCache installed, but vB Optimise tells me it's not?
A: WinCache only introduced OpCode support in version 1.1, if you're using version 1.0.x you will need to upgrade.

Q: I'm using the XCache method, flushing doesn't work?
A: If you have XCache authentification, turn the admin option on within vB Optimise Settings, then edit ./vboptimise/config.php and specify your XCache username/password. Alternatively you can disable XCache authentification within php.ini:
Code:

xcache.admin.enable_auth = Off
Q: I have eAccelerator installed, but vB Optimise tells me it's not?
A: eAccelerator does not provide the caching extension by default, you will need to recompile PHP with additional flags. For more information read eAccelerator documentation located here: http://eaccelerator.net/wiki/CompileConfiguration (Specifically look at: with-eaccelerator-shared-memory)

Deceptor 12-18-2008 10:50 PM

-Reserved-

lazydesis 12-18-2008 10:51 PM

the installation.txt file is empty :(

may be u forgot :D

will try after i know how to install .. i hope its straight forward upload files and import product :confused:

Deceptor 12-18-2008 10:53 PM

Sorry, forgot to hit save on that before zipping up. Try now :)

Also yes, no file edits.

lazydesis 12-18-2008 11:11 PM

in settings page you have
Code:

vB Optimise: Online/Offline
Use this setting to turn vB Optimise online or offline.

Yes = online or offline?

Deceptor 12-18-2008 11:12 PM

Yes = online :) I'll make that a little more clear in an update I guess.

F0xy 12-18-2008 11:13 PM

will it work on 3.7.x

Deceptor 12-18-2008 11:14 PM

Read the FAQ please :)

Brandon Sheley 12-18-2008 11:17 PM

interesting, will keep an eye on this one :)

lazydesis 12-18-2008 11:18 PM

*clicks install* got to see if it really increases the speed..how can i do that?

anyways thanks for the mod :)

Deceptor 12-18-2008 11:21 PM

Speed can vary depending on a number of factors, I found the best results occur when using Memcache. You could turn on vBulletin debug information to check page generation times, this is my forums normal generation time (forum home):

Quote:

Page Generation 0.08814 seconds
This is simply a test forum, no mods but vB Optimise, my server also has XCache installed, when I turn vB Optimise on:

Quote:

Page Generation 0.02804 seconds
Not to mention the reduction in two queries and a chunk off another :)

veenuisthebest 12-18-2008 11:40 PM

you joined two days back and brought a really nice thing pretty fast. Will test it out.

Can you please explain, which 2 global queries does it reduce and which one it chunks off.

thanks

ssslippy 12-18-2008 11:53 PM

This looks interesting and promising if it does what it says.

Question doesnt vbulletin already cache templates?

KevinL 12-18-2008 11:54 PM

Going to keep an eye on this one :)

Deceptor 12-19-2008 12:02 AM

Quote:

Question doesnt vbulletin already cache templates?
vBulletin caches the template in a state ready to eval, but they are still called from the database on every page, but not with vBO :)

Quote:

Can you please explain, which 2 global queries does it reduce and which one it chunks off.
The query to fetch templates, and the query to fetch the style are both removed. The fetch user info query is the one with the chunk taken out, that chunk being the language/phrases since vB fetches that when fetching the userinfo.

lazydesis 12-19-2008 12:22 AM

this doesnt allow me to select styles :( the default style is the only always shown .. is that correct?

Deceptor 12-19-2008 12:23 AM

Quote:

Originally Posted by lazyindian (Post 1688350)
this doesnt allow me to select styles :( the default style is the only always shown .. is that correct?

I'll check this out now, style switch should work, could possibly be a bug :)

Deceptor 12-19-2008 12:36 AM

Fixed, re-download and then re-upload the following file:
./includes/class_activecache.php

You'll be able to select styles correctly then :)

Medtech 12-19-2008 12:59 AM

Just what i was looking for, thanks!!!! *Installed*

Medtech 12-19-2008 01:06 AM

What extensions are you talking about?

Quote:

vB Optimise offers the ability to use alternative methods to caching if you have the extensions installed on your server, it is recommended you use one of these instead of File Cache.

Deceptor 12-19-2008 01:07 AM

If you have XCache or Memcache installed on your server, you can choose either one in the vB Optimise settings, and vBO will use that instead of File Cache, as both are much better than using the file system to cache data.

glorify 12-19-2008 01:20 AM

Do you still have to enable xcache in your config.php if you are enabling thru the mod?

Deceptor 12-19-2008 01:21 AM

XCache does not need to enabled through config.php, nor does Memcache, but the memcache server info does need to be included in config.php :)

glorify 12-19-2008 01:23 AM

So if I have it enabled thru config.php, should I comment out?

Deceptor 12-19-2008 01:24 AM

Not at all, you can use XCache in config and for vB Optimise, or use Memcache in config and XCache in vB Optimise, it won't conflict :)

glorify 12-19-2008 01:24 AM

Thank you kind sir :)

Deceptor 12-19-2008 01:25 AM

No problem :)

Medtech 12-19-2008 01:27 AM

How well will this work with SEO or crawlers?

Deceptor 12-19-2008 01:29 AM

Won't effect either, this is purely improving performance. If anything I guess it means spiders won't add as much load as they used to :)

glorify 12-19-2008 01:31 AM

I get this when trying to flush the cache:

Fatal error: xcache_count() [<a href='function.xcache-count'>function.xcache-count</a>]: xcache.admin.user and xcache.admin.pass is required in /home/xxx/public_html/forums/includes/class_activecache_methods.php on line 161

Medtech 12-19-2008 01:33 AM

good, at times i have 700 members online with about 900 spiders, i have to turn off my plugin/ hook system so my forum does not lockup. using a VPS server. we will see what this does in a week when i get slammed again

Deceptor 12-19-2008 01:33 AM

You should recieve a prompt when attempting to flush the cache asking for your username/password, this is because your XCache is configured to require an admin username/password when using administrative XCache functions. Is the pop-up for authentification not showing?

This can be disabled through your php.ini:
Code:

xcache.admin.enable_auth = Off

glorify 12-19-2008 01:35 AM

Nope, not showing.

Deceptor 12-19-2008 01:37 AM

From what tests I've been able to do, the prompt should show on failure. It's possible the error haults this from happening, try the following change to see if it resolves your issue:

Open: ./includes/class_activecache_methods.php, Find:
Code:

                for ($x = 0, $total = xcache_count(XC_TYPE_VAR); $x < $total; $x++)
                {
                        if (xcache_clear_cache(XC_TYPE_VAR, $x))
                        {
                                $any = true;
                        }
                }

Change this to:
Code:

                for ($x = 0, $total = xcache_count(XC_TYPE_VAR); $x < $total; $x++)
                {
                        if (@xcache_clear_cache(XC_TYPE_VAR, $x))
                        {
                                $any = true;
                        }
                }

Find:
Code:

if (!isset($_SERVER['PHP_AUTH_USER']) && $x < 1)
Change this to:
Code:

if (!isset($_SERVER['PHP_AUTH_USER']))
Save and upload, let me know if this resolves the issue for you :)

glorify 12-19-2008 01:44 AM

Quote:

Originally Posted by Deceptor (Post 1688392)
You should recieve a prompt when attempting to flush the cache asking for your username/password, this is because your XCache is configured to require an admin username/password when using administrative XCache functions. Is the pop-up for authentification not showing?

This can be disabled through your php.ini:
Code:

xcache.admin.enable_auth = Off

Was able to get it using that workaround :)

Thanks. Didn't try the other lol.

Deceptor 12-19-2008 01:47 AM

No problem :) If you get a chance to try out the above changes to see if that works let me know how it goes.

glorify 12-19-2008 01:58 AM

I will, but I probably won't get the error now. Great work. Thank you. By the way, I am running RC1 and haven't upgraded to 2 yet.

Deceptor 12-19-2008 01:59 AM

Thanks for the note, it should run on beta installations of vB 3.8 too, but I won't swear by it :)

lazydesis 12-19-2008 01:59 AM

Quote:

Originally Posted by Deceptor (Post 1688357)
Fixed, re-download and then re-upload the following file:
./includes/class_activecache.php

You'll be able to select styles correctly then :)

thanks works as promised

1 question -- when i try to flush, it asks me for xcache username and passwd, when i give the ones i have in php.ini file, it says wrong. wat are these username and passwd?

also vboptimize directory has only 1 index.htm file? am i supposed to 777 this dir so vboptimize can write some files here?

Deceptor 12-19-2008 02:01 AM

You need to specify your username and password for XCache, remember the password in php.ini should not be an actual password, but an md5 encrypted password, then you enter the plain-text password in the prompt. Otherwise you can disable the admin authentification for XCache, see a couple of posts above to see how.

As for vboptimise/, yes it should have read/write permissions, as specified in the Admin CP descriptions when you setup vB Optimise :)


All times are GMT. The time now is 01:30 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.02284 seconds
  • Memory Usage 1,833KB
  • 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
  • (8)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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