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)

DNG 06-15-2009 03:23 AM

Going to keep an eye on this one

Wheemer 06-21-2009 01:34 AM

Quote:

Originally Posted by KevinL (Post 1824434)
Un-check cache phrases. It has been an issue with the mod. It has actually been covered in the thread. By doing so will not harm anything...

Is there any other way to fix this issue? I want to keep the most benifits of vboptimize...

But this problem I am seeing too, the people can't tell who sent the emails for registration.

thincom2000 06-21-2009 08:58 PM

For me (on 3.8.3), this only made a generation time and memory improvement (5-10 milliseconds) with cache styles and cache custom datastore.

Even though I have Xcache installed this option doesn't seem to work, so I had to use File Cache.

Caching templates actually slowed my forum by about 40 milliseconds.
Caching phrases added about 20 queries on every page load... so not using that.

thincom2000 06-24-2009 03:34 PM

Uninstalling this made an even more noticeable difference than 5-10 milliseconds.

Sc00by22 06-25-2009 10:50 PM

Thanks and installed!

My forum is 2x the speed of what it used to be. Thank you so much!

rossco_2005 06-27-2009 12:35 PM

I'm using this on my forum. Installed it during the week.
I am just using the WOL, styles and custom datastore cache (which I make heavy use of in some of my scripts :)).

The phrase cache I've read is broken so I turned it off.

As for the template cache, I noticed that when I edit templates and save them they don't get updated in the cache. Any fix or this? I'm using eaccelerator.

nascartr 06-27-2009 05:28 PM

Quote:

Originally Posted by rossco_2005 (Post 1838379)
I'm using this on my forum. Installed it during the week.
I am just using the WOL, styles and custom datastore cache (which I make heavy use of in some of my scripts :)).

The phrase cache I've read is broken so I turned it off.

As for the template cache, I noticed that when I edit templates and save them they don't get updated in the cache. Any fix or this? I'm using eaccelerator.


Did you try flushing the cache after the change?

rossco_2005 06-27-2009 09:04 PM

Quote:

Originally Posted by nascartr (Post 1838500)
Did you try flushing the cache after the change?

I found that the problem was that I don't have permission to use the flush function.
An easy way to fix this I found was to write my own flush function.

If anyone wants it here it is.
Line 359 in file class_activecache_methods.php is where the eAccelerator Flush function starts.
Replace:
PHP Code:

function flush($silent false)
    {
        
$success '__vBOptimise_EA_Test_' rand(3,999) . '__';

        
$this->set('vBOptimiseTest'$success);

        @
eaccelerator_clear();

        if (
$this->fetch('vBOptimiseTest') == $success)
        {
            
print_cp_message('vB Optimise: Your eAccelerator requires you to specify permission to this directory to allow vB Optimise to clear your cache. For more information please visit <a href="http://bart.eaccelerator.net/doc/phpdoc/eAccelerator/_info_php.html#functioneaccelerator_clear" target="_blank"></a>.');
        }
    } 

With:
PHP Code:

function flush($silent false)
    {
        foreach (
eaccelerator_list_keys() AS $cacheitem)
        {
            
$key = ( strpos($cacheitem['name'], ':') === substr($cacheitem['name'], 1) : $cacheitem['name'] );
            
eaccelerator_rm($key);
        }
    } 

THIS IS FOR EACCELERATOR USERS ONLY

rossco_2005 06-27-2009 09:08 PM

Does anyone want to tell me what exactly are all of the problems with cache phrases?
I can hopefully fix some or all of them to make this part of the hack useful for all.
Seeing as there's no support from the mod author... :(

nascartr 06-28-2009 02:03 AM

Quote:

Originally Posted by rossco_2005 (Post 1838591)
Does anyone want to tell me what exactly are all of the problems with cache phrases?
I can hopefully fix some or all of them to make this part of the hack useful for all.
Seeing as there's no support from the mod author... :(

One of the problems was that there would be no titles on emails sent from the forum. Cached phrases would not work with emails.

Also, on error pages, you have the site title at the top of the error box normally, with the cached phrases turned on there would sometimes just be a dash where the site title should be.

thcf 06-28-2009 10:03 AM

very sad to see the author of this script has vanished

i was the biggest donator for this mod, and i wont ever be making a donationa again!

yeshoward 07-01-2009 12:46 AM

We are using APC method with PHP5.2.9
We also find that template is NOT updated after changes

DID click "flush cache" on Vbadmin
DID go to apc.php to flush APC cache
DID re-install module

none of this is working....

btks1995 07-23-2009 04:05 AM

Everytime I add new user infraction levels, they go blank?? Any ideas.. thanks

Deceptor 07-23-2009 05:38 AM

It'll be to-do with phrases. Ideally the phrase cache here is unfortunately not solid so I'd recommend disabling it if you come across errors/issues/etc. The other caches available should be no problem though :)

Sephirot 07-23-2009 03:25 PM

I recently got the following error
Code:

[Thu Jul 23 17:45:00 2009] [error] [client XXXX] PHP Fatal error:  Maximum execution time of 240 seconds exceeded in /srv/www/htdocs/vbulletin/includes/class_activecache_methods.php on line 355, referer: XXXX
PHP Code:

    function set($title$item)
    {
        if (!
$this->connect())
        {
            return 
false;
        }

        
$this->set_title($title);

        if (
trim($item) == '')
        {
            
$item '{_______VB_ACTIVE_CACHE_BLANK_______}';
        }

        
eaccelerator_rm($title); // this is the line from the error log
        
eaccelerator_put($title$item);
    } 

Any ideas about the cause?

Deceptor 07-23-2009 08:20 PM

eaccelerator_rm() attempts to remove the item from the shared memory, I've never seen it fail before. Is the error still occuring? I can't seem to find any where else this has happened with eAccelerator.

Artes_Marciales 07-24-2009 12:41 PM

Thanks for the mod!!

kmike 07-24-2009 03:33 PM

There is no need for calling eaccelerator_rm() there, eaccelerator_set() takes care of replacing the older value with a new one. That being sad, it's extremely strange that PHP timed out on that call, it simply shouldn't happen.

The only possible cause I could think of is that maybe eAccelerator is set to cache everything on disk, and the disk I/O was blocked for some reason, and thus eAccelerator couldn't remove the old value.

Deceptor 07-24-2009 04:07 PM

Quote:

Originally Posted by kmike (Post 1854702)
There is no need for calling eaccelerator_rm() there, eaccelerator_set() takes care of replacing the older value with a new one. That being sad, it's extremely strange that PHP timed out on that call, it simply shouldn't happen.

The only possible cause I could think of is that maybe eAccelerator is set to cache everything on disk, and the disk I/O was blocked for some reason, and thus eAccelerator couldn't remove the old value.

It seemed like a best practice at the time really, and with the API on eAccelerator being fairly vague and the function appearing to do no harm (until this odd situation) I figured better to be safe than sorry. If it keeps happening for the user they can comment the line out, but honestly that may just be ignoring the problem as it seems to be a lot deeper.

Sephirot 07-24-2009 09:23 PM

Quote:

Originally Posted by Deceptor (Post 1854328)
eaccelerator_rm() attempts to remove the item from the shared memory, I've never seen it fail before. Is the error still occuring? I can't seem to find any where else this has happened with eAccelerator.

No it did not happend again after that day. It seems to be a very rare case.
I reduced the shm_prune_period and shm_ttl from 3600s to 1800s.

Quote:

Originally Posted by kmike (Post 1854702)
There is no need for calling eaccelerator_rm() there, eaccelerator_set() takes care of replacing the older value with a new one. That being sad, it's extremely strange that PHP timed out on that call, it simply shouldn't happen.

The only possible cause I could think of is that maybe eAccelerator is set to cache everything on disk, and the disk I/O was blocked for some reason, and thus eAccelerator couldn't remove the old value.

eAccelerator is set to use both, shared memory and disk (default). Maybe I should set it to "shm", which causes eAccelerator to use the disk only if the shared mem is full?

Deceptor 07-24-2009 10:18 PM

Quote:

Originally Posted by Sephirot (Post 1854867)
No it did not happend again after that day. It seems to be a very rare case.
I reduced the shm_prune_period and shm_ttl from 3600s to 1800s.


eAccelerator is set to use both, shared memory and disk (default). Maybe I should set it to "shm", which causes eAccelerator to use the disk only if the shared mem is full?

I'm no real expert on eAccelerator sadly, so I'm not sure if this would solve the rare case. It may even be a bug with eAccel but I can't be sure on that. If you change the setting and it doesn't occur again then I'd say it's worked, but it might be a cat and mouse game with trial and error unfortunately.

Megatr0n 07-24-2009 10:35 PM

Hi Deceptor,

Good to see you back! :)

mute 07-24-2009 10:44 PM

Really, really looking forward to seeing this picked back up again!

kmike 07-25-2009 05:18 AM

Quote:

Originally Posted by Sephirot (Post 1854867)
eAccelerator is set to use both, shared memory and disk (default). Maybe I should set it to "shm", which causes eAccelerator to use the disk only if the shared mem is full?

I'd set it to "shm_only", once you determine the optimal size of shared memory so all scripts and cached keys fit in it. I'd start with 96M, and then watch the shared memory utilization in the eAccelerator control panel.

Sephirot 07-26-2009 08:27 PM

It happend again after submitting the changes to a usergroup. And if I remember correctly, I did the same when it happend the last time!

Deceptor 07-27-2009 09:56 AM

vB Optimise doesn't directly tie in with usergroups anywhere. The only cache it will potentially handle is Phrases (if you have Phrase Cache on and haven't disabled phrase cache in the ACP), and also handle custom datastore items. Nothing is actually "set" on this page unless those phrases/datastore items aren't already cached.

If you change the usergroup all the time will the error come up every time, or just some of the times? Also try removing the affected PHP line or comment it out and see if it rectifies the issue, as said before the function isn't required.

veenuisthebest 07-27-2009 10:28 AM

Good to see you back Deceptor. :)

Adult SEO 07-27-2009 02:11 PM

Is this mod usable for bigger forums, with 500.000 visitors per day? Or is there a turning point somewhere when the traffic is going up further?

MentaL 07-28-2009 03:33 PM

Nothing is storing in forum/vboptimise, any idea why?

Sayid 07-28-2009 08:48 PM

This is my best mod

most of options work but when I enable vB_Datastore_Filecache and the vB Optimise: Custom Datastore Cache, I got the following error in ACP :
Quote:

Fatal error: Could not obtain file lock in ..\vb\includes\class_datastore.php on line 807

Deceptor 07-28-2009 08:57 PM

Adult SEO - The bigger the better. Generally larger setups benefit more, especially if you have a DB server, as the reduction in templates and other queries means your internal bandwidth will reduce significantly, we've had users report their bandwidth has dropped considerably and saved them money.

Mental - It only will if you use the Filecache method.

Sayid - That's vBulletin reporting an error, and that's vBulletins filecache not vB Optimise. I'd check with vB support.

yahoooh 07-29-2009 01:28 AM

could u plz support : vba links and vba dynamics
also vbgallery

Verionia 08-04-2009 10:44 PM

does this work?

tpearl5 08-08-2009 05:22 PM

BTW, I found that using xcache with this mod and using memcache for vb datastore is a little faster and more efficient than using memcache for both vboptimise caching and datastore. With the help of xcache and this mod I've decreased my server load by half!

relaxiha 08-08-2009 09:02 PM

Hello. Is how you use and put it on the server eAccelerator Here. How active the server to centos. Thankful
And if that may help is on the case which is better put in terms of speed

Essam 08-10-2009 01:50 PM

hi

i got some problems with this in my forum ..

whenever i try to create new forum prefixes the titles doesn't appear so i had to disable both
vB Optimise: Cache Phrases
vB Optimise: Cache Phrases (Finalise)

is there any suggestion or solution to this problem ?

thanks

Deceptor 08-11-2009 01:54 AM

Flushing the cache should resolve it, although the Phrase Cache can be flakey depending on what functions/features you use on your forum, you can disable the cache phrases feature and it won't impact the performance gain that much as it's only trimming a MySQL query other than avoiding one altogether.

MentaL 08-11-2009 07:07 PM

this is highly INCOMPTABLE with 3.8.4 , it causes errors on user profiles and releases a bunch of sensative data when editing user profiles too, do not use with 3.8.4 until fixed!

vidan 08-11-2009 07:35 PM

correct, its incompatible with vb.3.8.4 and php 5.3.0 + xcache 1.3.0
Warning: trim() expects parameter 1 to be string, array given in [path]/includes/class_activecache.php on line 123

matthewhotdude 08-11-2009 09:57 PM

Installed and set up but don't notice any difference

also does this reduce or increase bandwith or doesnt it make a difference?


All times are GMT. The time now is 03:24 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.02718 seconds
  • Memory Usage 1,844KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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