Caching specifics - Xcache, mod_ruid2, and sqlite

actived

Well-Known Member
Mar 30, 2012
51
0
56
cPanel Access Level
Website Owner
We use suPHP and it seems that no type of opcode caching works with suPHP.

For better performance we are thinking of speeding up what we can (short of installing varnish and nginx which produce even more configuration complexity).

So 3 questions:
1. Will Xcache work with suPHP ?

2. Will Xcache work with mod_ruid2 ?

3. Will sqlite work with mod_ruid2 ?

Although sqlite isn't code caching, we are planning to put access to all the "constant" tables into sqlite so that those frequent calls to mysql are reduced - which will enable mysql to handle more requests in the same time - thus speeding up the performance overall. That's the general idea with the sqlite angle.

(We would switch to mod_ruid2 right away for better performance - but for known issues with mod_security, which are holding that back)
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
1. Will Xcache work with suPHP?
No. No OPCode Caching works with suPHP, which includes EAccelerator, xCache and APC.

2. Will Xcache work with mod_ruid2?
It should work with DSO, and mod_ruid2 is a module with DSO. I don't know how much testing has been done with mod_ruid2 and xCache, though.

3. Will sqlite work with mod_ruid2?
Yes, sqlite will work with mod_ruid2. mod_ruid2 shouldn't impact a baseline module for PHP so most any module for PHP should work with mod_ruid2 under DSO. The only ones that won't work are those that a) don't work with DSO, b) require a shared set of files under DSO (and some of the caching options might), since mod_ruid2 runs files as the user rather than as nobody.

Thanks!
 

actived

Well-Known Member
Mar 30, 2012
51
0
56
cPanel Access Level
Website Owner
Thanks for the reply! This saves us the time testing the 3 opcode cache / accelerators and finding that they dont work.