Hi all, I'm using php 5.2.6 as Fastcgi with Apache 2.2.9 I tested with the simple script $cat test.php <? echo "a"; ?> Fist, I request to a.php some times to ensure it is cached. The result is "a" (of course) After that, I replace "a" by "b". But the result is "b", not "a" as i expect. That means xcache.stat = Off doesn't work Here is xcache's configuration: [xcache-common] zend_extension = /usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/xcache.so [xcache.admin] xcache.admin.enable_auth = On xcache.admin.user = "xx" xcache.admin.pass = "xx" [xcache] xcache.shm_scheme = "mmap" xcache.size = 64M xcache.count = 4 xcache.slots = 8K xcache.ttl = 0 xcache.gc_interval = 0 xcache.var_size = 8M xcache.var_count = 1 xcache.var_slots = 8K xcache.var_ttl = 0 xcache.var_maxttl = 0 xcache.var_gc_interval = 300 xcache.test = Off xcache.readonly_protection = On xcache.mmap_path = "/tmp/xcache" xcache.coredump_directory = "" xcache.cacher = On xcache.stat = Off xcache.optimizer = Off [xcache.coverager] xcache.coverager = Off xcache.coveragedump_directory = "" Here is phpinfo(): Version 1.2.2 Modules Built cacher optimizer Readonly Protection enabled Opcode Cache enabled, 67,108,864 bytes, 4 split(s), with 8192 slots each Variable Cache enabled, 8,388,608 bytes, 1 split(s), with 8192 slots each Shared Memory Schemes mmap xcache.admin.enable_auth Off Off xcache.cacher On On xcache.coredump_directory no value no value xcache.count 4 4 xcache.gc_interval 0 0 xcache.mmap_path /tmp/xcache /tmp/xcache xcache.optimizer Off Off xcache.readonly_protection 1 1 xcache.shm_scheme mmap mmap xcache.size 64M 64M xcache.slots 8K 8K xcache.stat Off Off xcache.test no value no value xcache.ttl 0 0 xcache.var_count 1 1 xcache.var_gc_interval 300 300 xcache.var_maxttl 0 0 xcache.var_size 8M 8M xcache.var_slots 8K 8K xcache.var_ttl 0 0 And, the admin page shows: php#0 8.00 K 16.00 M 13.57 M no 217 10 0 0 0 yes 10 0 php#1 8.00 K 16.00 M 15.85 M no 62 7 0 0 0 yes 7 0 php#2 8.00 K 16.00 M 11.83 M no 786 20 0 0 0 yes 20 0 php#3 8.00 K 16.00 M 15.80 M no 64 8 0 0 0 yes 8 0 var#0 8.00 K 8.00 M 7.94 M - 0 0 0 0 0 yes 0 0 291 Any suggest? Thanks
on 26.06.2008 12:02
on 27.06.2008 17:32
just make sure you have 1 parent cache while all childrens fork from the
parent use the same cache.
php (parent) ---- php (child)
+--------------- php (child)
+--------------- php (child)
+--------------- php (child)
or
|-start-stop-daem---svscan-+-supervise---php-cgi---3*[php-cgi]
on 27.06.2008 20:29
moo XCache wrote: > just make sure you have 1 parent cache while all childrens fork from the > parent use the same cache. > > php (parent) ---- php (child) > +--------------- php (child) > +--------------- php (child) > +--------------- php (child) > > or > |-start-stop-daem---svscan-+-supervise---php-cgi---3*[php-cgi] Hi, this is pstree from my server: |-httpd -k start | |-httpd -k start | | |-php-cgi | | |-php-cgi | | |-php-cgi | | |-php-cgi | | `-php-cgi is it good ?
on 28.06.2008 16:58
ban4n4 wrote: > moo XCache wrote: >> just make sure you have 1 parent cache while all childrens fork from the >> parent use the same cache. >> >> php (parent) ---- php (child) >> +--------------- php (child) >> +--------------- php (child) >> +--------------- php (child) >> >> or >> |-start-stop-daem---svscan-+-supervise---php-cgi---3*[php-cgi] > > Hi, > > > this is pstree from my server: > > |-httpd -k start > | |-httpd -k start > | | |-php-cgi > | | |-php-cgi > | | |-php-cgi > | | |-php-cgi > | | `-php-cgi > > is it good ? no, it should be: |-httpd -k start | |-httpd -k start | | |-php-cgi | | | |-php-cgi | | | |-php-cgi | | | |-php-cgi | | | |-php-cgi | | | `-php-cgi 1 parent php-cgi, and many childs
on 09.07.2008 11:55
How to make this with Apache and mod_fcgid for php ? moo XCache wrote: > ban4n4 wrote: >> moo XCache wrote: >>> just make sure you have 1 parent cache while all childrens fork from the >>> parent use the same cache. >>> >>> php (parent) ---- php (child) >>> +--------------- php (child) >>> +--------------- php (child) >>> +--------------- php (child) >>> >>> or >>> |-start-stop-daem---svscan-+-supervise---php-cgi---3*[php-cgi]

