Active
Project:
Cache
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2009 at 18:42 UTC
Updated:
12 Sep 2009 at 19:02 UTC
Admittedly, I don't really know what I am doing. However, this does seem to create var_data in xcache. In the examples, db is the default. Is there any reason not to set xcache as the default? Does this configuration appear reasonably sane?
Thanks in advance!
OS=CentOS
PHP= (out of box) 5.2.6
Web server=Lightthpt 1.4.22
I am also getting this error:
xcache_get(): xcache.var_size is either 0 or too small to enable var data caching, My xcache var settings are:
xcache.var_size = 8M
xcache.var_count = 3
xcache.var_slots = 8K
xcache.var_ttl = 3600
xcache.var_maxttl = 3600
xcache.var_gc_interval = 300
settings.php=
//cache
$conf['cache_inc'] = './sites/all/modules/cache/cache.inc';
$conf['session_inc'] = './sites/all/modules/cache/session.inc';
$conf['cache_settings'] = array(
'engines' => array(
'db' => array(
'engine' => 'database',
'server' => array(),
'shared' => TRUE,
'prefix' => '',
),
'xcache' => array(
'engine' => 'xcache',
'server' => array(),
'shared' => TRUE,
'prefix' => '',
),
),
'schemas' => array(
'db' => array(
// Engines:
'db',
),
'xcache' => array(
// Engines:
'xcache',
),
),
'bins' => array(
// Bin name => Schema name.
'default' => 'xcache',
'cache' => 'db',
'cache_form' => 'xcache',
'cache_page' => 'xcache',
'cache_filter' => 'xcache',
),
);
// end cache
Comments
Comment #1
doq commented1. What is your Xcache extension version?
2. This is mine xcache configuration (as far as I remember it was working the last time I used it for testing):
3. Xcache as default? Well it should be tested. It also depends on the size of bins you will have. For example, if they will always be less then 100M then you may set Xcache cache size to e.g. 128M and you will receive xcache hit rate up to 99.9% easily. You might find more information in this thread - http://drupal.org/node/564116#comment-1993128.