vb.org Archive

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

Fungsten 06-20-2010 05:03 PM

Quote:

Originally Posted by Deceptor (Post 2056317)
Make sure you have selected a cache system too, if it's set to None then there is nothing to test :)

How can I find out which cache system I have? Where would I select that?

On Edit:

I see it!

Deceptor 06-21-2010 12:00 PM

Quote:

Originally Posted by Fungsten (Post 2056509)
How can I find out which cache system I have? Where would I select that?

On Edit:

I see it!

:)

Just incase anyone else is unclear, it's within Main Settings under the vB Optimise menu (within the ACP).

TeknoSounds 06-22-2010 10:52 PM

Had a duh moment the other day, I realized after I had installed everything a month ago or so ago and had been using this mod; that there were configs within vbulletin's config file that set to use xcache (or other opcode cacher) in there as well.

Deceptor 06-23-2010 11:58 AM

Yeah you can set vB to use similar systems too which I recommend you'd do, it'll cache the datastore which reduces a global query in most places :)

rajubd 06-23-2010 03:28 PM

Vb optimize work with fastcgi + eacelarator?
Because dso creating upload problem in my site. So i have to move back fastcgi. If eacelarator work i will remove xcache.

Super Jinni 06-24-2010 01:12 PM

Hi Deceptor,

I got some questions in mind:
  • - Does XCache has its own folder to store data which is totally separated from vBulletin datastore folder? As I see, your mode works with XCache whether I enabled the datastore in the includes/config.php file or not, which is not the case with Memcached as it requires enabling the datastore in config.php file, so I thought it might has nothing to do with vBulletin datastore or the config.php file?

  • - If XCache has its own folder for sorting cached data, is it OK to configure the datastore cache to use Memcahched whild your mode works with XCache? in theory, if XCache use a different folder to store cached data other than vBulleitn datasotre which is required by Memcached, and as XCache and Memcached do a quite different jobs, then performance will be much better when using both in the same time, XCache with your mode, and Memcached with vBulletin datastore, am I correct?

    Or

  • - It is a bad idea using both, and there will be some conflicts when using both XCache and Memcached as mentioned above?

  • - If XCache has its own folder for cached data, then what happens if enabled datastore in the config.php file to use XCache? Will XCache stop caching to its own folder and only caches to the datastore folder? or it will cache to both folders?

  • - How to find where XCache store data in? and how can I change it if I want to? I tried to figure that out but couldn't.

Regards :)

Deceptor 06-24-2010 02:03 PM

@rajubd - You'd have to test, I'm not 100% sure. If it doesn't, I'd recommend using Memcache personally over APC.

@Super Jinni
1. XCache stores data in ram, not in the file system. We don't require any connection settings to XCache so it doesn't have to be filled in the config.php - however Memcached requires IP/port settings, plus you can have multiple memcached servers so we require you fill those settings within config.php for vBO to fetch and use them for connection. In either case, the datastore is not linked to vBO in anyway, vbulletin has a folder for its datastore but that is only used if you set the datastore to use file cache within config.php

2. You can use 2 systems if you want, though I'd recommend using the same so runtime doesn't require the use of using 2 extensions for cache - just the 1.

3. No conflicts using both, just might use a little extra runtime memory/processing

4. As said XCache stores data in ram

5. Only way you can change data stored in xcache is through their API functions like xcache_get() and xcache_set().

Let me know if you have any further questions :)

Super Jinni 06-24-2010 03:50 PM

Thanks Deceptor for your helpful answers.
The reason to use Memcached with XCache is that I've set Nginx in front of Apache for static files, and read somewhere that it's good to set Memached behind Nginx so Nginx will check Memcashed for request firs, if not found there then it will pass the request to Apache. So I set Memcashed behind Nginx, but I couldn't make it to store data, so I thought I'd use vBulletin datastore, and it seems that works so Memcashed now is cashing data while Nginx is pulling data from Memcashed if they are existed.

I'm not sure if what I'm doing the currect thing (Nginx (as font-end for static contents) + Memcashed (to cache for Nginx) + Apache (as back-end to deal with PHP) + PHP (mod_php) + XCache (with your vBO))

I'm worried about performance and server usage, so if you have any suggestions or ideas regarding what I use and how I use it, please let me know.

Thanks :)

Deceptor 06-25-2010 12:44 AM

Well personally If I had nginx running I'd drop apache altogether, nginx itself can work with php in FastCGI and works a lot faster than apache due to its event/async driven codebase.

Depends what apache modules you need really, but the most common things done in apache can be done with nginx - I'd do a little research on it and see what you can find :)

Super Jinni 06-25-2010 02:44 AM

Yeah, I thought about getting rid of Apache but I use mod_rewrite quite a lot, and I still couldn't figure out how to do the rewriting in Nginx. That's what holding me off.

I also did some researches about Nginx, Apache and PHP and found that Apache is faster than Nginx when it comes to PHP, but Nginx is light and a lot faster when it comes to static contents, so I thought why not to take advantages of both's strength.

But I do still need to do a LOT of homework to get the best results.

Thanks again, mate :)


All times are GMT. The time now is 09:34 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.01310 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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