The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
XCache for vBulletin Caching Details »» | |||||||||||||||||||||||||||
This mod will replace the default vB_Cache_Db class (database cache) used in vBulletin with an xCache implementation of it.
vBulletin has promised to implement this option themselves, but I'm sick of waiting, so I created this. What are the benefits of using XCache for caching over MySQL (Database) ? In theory, quicker page load times, lower server load. This will offload the duty of caching from mysql and throw it into the RAM. It will also reduce your query count per page. The most staggering difference you will notice is with the CMS, or any mods that make good use of the cache. For instance, in my dev site using the default CMS content and settings, browsing as a guest, I was able to shave off an average of 0.06 seconds from the page generation time (0.23 -> 0.17 seconds) and 43 queries (86 -> 43)! In a live site, the reduction in queries and overall time spent serving the page will have a large effect on overall performance in a busy site. Make sure that you also have the datastore cache method set to xcache as well for further query reduction: https://www.vbulletin.com/docs/html/datastore Also install "Load templates from XCache" for further query reduction: https://vborg.vbsupport.ru/showthread.php?t=255994 Any drawbacks? Other than a file edit required on every vBulletin upgrade, none that I can think of... If you think of one, post it. What about other data caches ? (memcached, apc, etc.) I could write those as well, if there is a demand for it, and they happen to work similar enough to xcache. This is a beta! This has been tested in a live forum for a few days, and no incidents/side-effects have been noticed or reported, but I cannot yet guarantee it is 100% perfect. This mod requires one file edit See this bug to find out why: http://tracker.vbulletin.com/browse/VBIV-13241 Requirements This was designed to fail gracefully by falling back on the DB cache if there is an error, so if there is an error you will not even realize it. Make sure these requirements are met:
Restart after making any changes. Another tip is to set your xcache.count and xcache.var_count to the number of CPU cores that you have. See the documentation here: http://xcache.lighttpd.net/wiki/XcacheIni After running this mod for a while, check your xcache admin page to ensure that your var_slots and var_size are large enough. Install Instructions 1. Upload the contents of the UPLOAD folder in xcache.zip to your forum root 2. Open up your /includes/config.php file and add the following: PHP Code:
3. This step will need to be repeated whenever you do a forum upgrade. Open up /vb/cache.php. Find: PHP Code:
PHP Code:
Download Now
Show Your Support
|
4 благодарности(ей) от: | ||
FReeSTER, Max Taxable, steviewonder44, tbworld |
Comments |
#52
|
|||
|
|||
Uninstalled. Was also doing this on PM and some other pages.
|
#53
|
||||
|
||||
I uploaded a new version that fixes a bug that was causing CMS and some other pages to load blank, or show errors.
To update, just upload the contents of the UPLOAD folder to your forum root and allow it to overwrite the old file. |
Благодарность от: | ||
Robru |
#54
|
||||
|
||||
Thanks for the update. I tried the older version a while back, but like you mentioned I had some issues with blank pages.
So far so good with this version. Using it on vb 4.2 PL3 with XCache 3.0.1. Is anyone still using the template caching mentioned from this link? https://vborg.vbsupport.ru/showthread.php?t=255994 ...it seems to have issues |
#55
|
|||
|
|||
does hosting provider must be installed xcache on server to use this?
|
#56
|
||||
|
||||
Quote:
http://xcache.lighttpd.net/ |
Благодарность от: | ||
Robru |
#57
|
||||
|
||||
I've just installed vBOptimise which i am told works best with this mod.
I've uploaded all the contents into the forum root. Now looking at step 2 2. Open up your /includes/config.php file and add the following: I went to download the file /includes/config.php and i'm being told its the same file i've just uploaded from vBoptimise. is this correct? If so, where abouts do i add the code Code:
/* * XCache Config */ $config['xcache']['user'] = 'user'; $config['xcache']['pass'] = 'pass'; |
#58
|
||||
|
||||
You really need to remove the info from the above post, you gave out all your sites info in the config file.
|
#59
|
||||
|
||||
Quote:
Where do i add the code? Also, it says to edit it to include my admin xcache username and password. where do i find these or is this where i create them? |
#60
|
||||
|
||||
Quote:
1) IF you decide to run xCache with "Password Authentication" You will need to make sure these lines exist in your php.ini file:2. IF you decide to run xCache without "Password Authentication" In php.ini this will be the only setting change: |
#61
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|