Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools
datastore cache to XCache - boost your vBulletin Details »»
datastore cache to XCache - boost your vBulletin
Version: 0.8.5, by phpxcache phpxcache is offline
Developer Last Online: Mar 2008 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.5 Rating:
Released: 03-02-2007 Last Update: 03-03-2007 Installs: 142
Code Changes Additional Files  
No support by the author.


(note: do not apply this patch on vBulletin 3.7 as it's included already)
This patch allow you to use XCache as a datastore cache in vBulletin. This is definitely your choice if you have installed and enabled XCache on you server already.

Take care that this is a beta version and was not heavily tested. And i'm not familiar with vBulletin source code as i just started reading it today, but i don't have any difficulty reading it thanks to my years of php skill

Take aware that some vB plugin is not compatible with vB_datastore_*, not just vB_datastore_XCache. So, in case you find vB_datastore_XCache won't work, you'd better try datastore to file or memcache. If one of the others works but not vB_datastore_XCache, do report it to me so i can fix it.

Pre-requirement
Install the modification
for those of you who can't run "patch", u may patch the file manually
  • download Attachment 61372 (class_datastore_xcache.php)
  • save the file as vBulletin.3.6/upload/includes/class_datastore_xcache.php
  • open vBulletin.3.6/upload/includes/class_datastore.php in your favor editor
  • add a line in class_datastore.php (see below)
  • update upload/includes/config.php to enable it (see below)

example class_datastore.php after modification:
PHP Code:
        }
        return 
true;
    }
}

// add class_datastore_xcache, enable it in config.php
require_once(DIR '/includes/class_datastore_xcache.php');

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 12:33, Fri Mar 2nd 2007
|| # CVS: $RCSfile$ - $Revision: 15474 $
|| ####################################################################
\*======================================================================*/ 
example config.php after modification:
PHP Code:

    
// vB_Datastore_Filecache  - for using a cache file
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';
$config['Datastore']['class'] = 'vB_Datastore_XCache';
    
// vB_Datastore_Memcached - for using a Memcache server
    // It is also necessary to specify the hostname or IP address and the port the server is listening on 
Trouble Shooting
q. i have multiple vBulletin instance installed, the seems to mix data after install this plugin
a. this applies to apc too because, if you wanna fix it, try
open class_core.php, look for:
$this->prefix =& $this->registry->config['Datastore']['prefix'];
and modify to:
$this->prefix = $this->registry->config['Datastore']['prefix'] . $_SERVER['SERVER_NAME']; // or HTTP_HOST

q. Warning: unserialize() expects parameter 1 to be string, array given in $a.php on line $b
a. upgrade your plugin/hack that $a.php belongs to, e.g. vbjournal/vbgallery etc. OR open $a.php and locate at line $b, remove unserialize call, e.g.:
replace $var = unserialize($this->data);
with $var = $this->data;
be careful do not remove the whole line, just the unseralize( and )

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-04-2007, 04:45 PM
ubuntu-geek ubuntu-geek is offline
 
Join Date: Oct 2004
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, working great thanks.
Reply With Quote
  #43  
Old 03-04-2007, 05:06 PM
bluechris bluechris is offline
 
Join Date: Nov 2006
Location: Athens. Greece
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I mean that if i enable vB_Datastore_XCache i get nothing from vbgooglemap. Xcache working fine as template cache atm.
Reply With Quote
  #44  
Old 03-04-2007, 05:17 PM
ubuntu-geek ubuntu-geek is offline
 
Join Date: Oct 2004
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bluechris View Post
I mean that if i enable vB_Datastore_XCache i get nothing from vbgooglemap. Xcache working fine as template cache atm.
Is it possible for you to turn on php errors? Then you can see the error. I know with xcache and php4 I had issues uploading attachments and some other various issues.
Reply With Quote
  #45  
Old 03-04-2007, 06:17 PM
bluechris bluechris is offline
 
Join Date: Nov 2006
Location: Athens. Greece
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im not with 4 i am with 5.2.1 ... i will turn on php errors to see whats going on.
Reply With Quote
  #46  
Old 03-04-2007, 06:54 PM
bluechris bluechris is offline
 
Join Date: Nov 2006
Location: Athens. Greece
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had errors in php.ini to all allready... just i get a blank page in googlemaps... strange though
Reply With Quote
  #47  
Old 03-04-2007, 09:38 PM
goyo goyo is offline
 
Join Date: Mar 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Compatibility problem.

Great hack unfortunately it's not compatible with Photopost vBGallery.

I'm receiving all kind of weird errors:

PHP Code:
Warningunserialize() expects parameter 1 to be string, array given in /gallery/gallery_global.php on line 72

Warning
array_merge() [function.array-merge]: Argument #2 is not an array in /gallery/gallery_global.php on line 72

Warningunserialize() expects parameter 1 to be string, array given in /gallery/gallery_global.php on line 75

Warning
Invalid argument supplied for foreach() in /gallery/gallery_global.php on line 237 
Also i'm receiving an error from Plugin Accelerator plugin:
PHP Code:
Warningunserialize() expects parameter 1 to be string, array given in /includes/class_plugin_accelerator.php on line 77 
Phpxcache do you have any idea what could be the problem ?

Correction...it's not compatible with any of the large plugins like vBlogetin or GARS.
Errors like above everywhere
Reply With Quote
  #48  
Old 03-04-2007, 11:29 PM
phpxcache phpxcache is offline
 
Join Date: Feb 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bluechris View Post
I mean that if i enable vB_Datastore_XCache i get nothing from vbgooglemap. Xcache working fine as template cache atm.
does vb_Datastore_File works? (i can't recall the name, u may check the class name in class_datastore.php)

if yes, it's vB_Datastore_XCache problem, otherwise, it's the problem between vbgooglemap and vB_Datastore.

i'd like to know what's going on. hope i know how to install the plugin. i'll check it later, and/or you trace it down.
Reply With Quote
  #49  
Old 03-04-2007, 11:54 PM
Gsmdenis Gsmdenis is offline
 
Join Date: Jan 2006
Location: Hongkong
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

support this for ever

BR.,

Denis
Reply With Quote
  #50  
Old 03-05-2007, 02:16 AM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by goyo View Post
Compatibility problem.
Great hack unfortunately it's not compatible with Photopost vBGallery.
Please report it

http://trac.lighttpd.net/xcache/newticket
here.u will need to reg.(5 sec need for reg.just ur nick & pass) and plese describe all the details..
ur php version /ur application :vb /extension -photopost vbgallery/gars ..(vblogetin is paid mods.If possible provide him more info) with the links.
n describe..
and be patient u will get ur solution soon....all user will be helped out

PhotoPlog: The Lite Gallery & GRPS: Groups Commune 2.0.x & http://www.vblogetin.com/ ..
vblogetin is paid mods..so if ur willing to solve the issue u have to help him......depends on u
Reply With Quote
  #51  
Old 03-05-2007, 11:32 AM
goyo goyo is offline
 
Join Date: Mar 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zia View Post
Please report it

http://trac.lighttpd.net/xcache/newticket
here.u will need to reg.(5 sec need for reg.just ur nick & pass) and plese describe all the details..
ur php version /ur application :vb /extension -photopost vbgallery/gars ..(vblogetin is paid mods.If possible provide him more info) with the links.
n describe..
and be patient u will get ur solution soon....all user will be helped out

PhotoPlog: The Lite Gallery & GRPS: Groups Commune 2.0.x & http://www.vblogetin.com/ ..
vblogetin is paid mods..so if ur willing to solve the issue u have to help him......depends on u
Thanks Zia,

It has nothing to do with xcache.
I'm running xcache since the 0.x releases (before anyone used as phpcache at vbulletin). Everything runs just fine.

This plugin only works well with stock vbulletin.

It doesn't work well with the plugins. (Not only vBGallery, Geek Article System, and vBlogetin...it doesn't work with vBShout...)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05228 seconds
  • Memory Usage 2,328KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete