Opened 3 years ago

Closed 3 years ago

#353 closed defect (invalid)

Variable Cache always empty

Reported by: kanwal Owned by: moo
Priority: critical Milestone: undecided
Component: cacher Version: 3.1.0
Keywords: Cc:
Application: PHP Version: 5.4.34
Other Exts: SAPI: Irrelevant
Probability: Always Blocked By:
Blocking:

Description

Hi

I have installed xcache 3.1.0 on centos 6.5 successfully as shown in phpinfo. I am using following xcache configuration

xcache.admin.enable_auth="Off"
xcache.admin.pass="bf4182ba8757a73686fda10172d48098"
xcache.admin.user="adxcache"
xcache.cacher="On"
xcache.coredump_directory=""
xcache.coredump_type="0"
xcache.count="8"
xcache.coveragedump_directory=""
xcache.coverager="Off"
xcache.coverager_autostart="On"
xcache.disable_on_crash="Off"
xcache.experimental="Off"
xcache.gc_interval="0"
xcache.mmap_path="/tmp/xcache"
xcache.optimizer="Off"
xcache.readonly_protection="Off"
xcache.shm_scheme="mmap"
xcache.size="60M"
xcache.slots="8K"
xcache.stat="On"
xcache.test="Off"
xcache.ttl="0"
xcache.var_count="1"
xcache.var_gc_interval="300"
xcache.var_maxttl="0"
xcache.var_namespace=""
xcache.var_namespace_mode="0"
xcache.var_size="4M"
xcache.var_slots="8K"
xcache.var_ttl="0"

Problem
In xcache admin i am getting
#
Using VAR Cacher Warning No variable data cached Var Cacher won't work simply by enabling it. PHP code must call XCache APIs like xcache_set() to use it as cache backend. 3rd party web apps may come with XCache support, config it to use XCache as caching backend

#
SAPI Compatibility Error CGI is not supported Use FastCGI or FPM instead

When i use xcache_set function it returns 1/true which i think is ok.But when i use xcache_get or xcache_isset functions it always reurn blank.

Regards

Attachments (1)

info.png (37.0 KB) - added by kanwal 3 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by kanwal

comment:1 Changed 3 years ago by kanwal

  • PHP Version set to 5.4.34
  • SAPI changed from FastCGI to Irrelevant

comment:2 Changed 3 years ago by moo

  • Resolution set to invalid
  • Status changed from new to closed

like it said "CGI is not supported". PHP in cgi mode, the process will exit on ever request shutdown (after processing 1 request). the overhead of CGI is big and it won't allow XCache to keep the cache.

Note: See TracTickets for help on using tickets.