The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Caching specifics - Xcache, mod_ruid2, and sqlite

Discussion in 'Workarounds and Optimization' started by actived, Aug 18, 2012.

  1. actived

    actived Well-Known Member

    Joined:
    Mar 30, 2012
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    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)
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    No. No OPCode Caching works with suPHP, which includes EAccelerator, xCache and APC.

    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.

    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!
     
  3. actived

    actived Well-Known Member

    Joined:
    Mar 30, 2012
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
Loading...

Share This Page