1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Which php caching for XenForo ?

Discussion in 'Server Configuration and Hosting' started by Francesco V., Apr 12, 2013.

  1. Francesco V.

    Francesco V. Active Member

    I'm jumping to another VPS provider and i don't know if i should stick with e-accelerator or swtich to APC or other caching thingy.
    Which's the best for XenForo ?
  2. Tracy Perry

    Tracy Perry Well-Known Member

    Which is better.. vanilla ice cream or strawberry? :D

    I personally use Xcache with nginx/php-fpm and have no complaints. I played with APC for a while but saw no real benefits so went back to Xcache. From what I understand e-accelerator is no longer actively supported?
    Some have said if you run Apache2 then use Xcache, if you run nginx use APC - but like I said I didn't notice any real difference - but I didn't put them to any performance testing either.
    I guess it also helps that my VPS is served from a system with RAID10 SSD's. :p
  3. Sheratan

    Sheratan Well-Known Member

    Somehow, I can't get APC works on my VPS. So I installed xCache and no problems so far. Really fast! And I'm using nginx + php-fpm on Ubuntu 12.04 LTS.
  4. Francesco V.

    Francesco V. Active Member

    Ok at the end i choosed APC only because it seems the most active (php dev endorsed, too) project.

    One related question. If my PHP 5 handler is DSO and apache handler is suEXEC are op code accelerator effective ?
  5. RoldanLT

    RoldanLT Well-Known Member

    I'm also interested on this.
    What is the best combination.
  6. Liam D.

    Liam D. Active Member

    APC (but don't put it in config.php) + memcached.
  7. RoldanLT

    RoldanLT Well-Known Member

    Why not utilize XF built in feature to integrate it?
  8. Liam D.

    Liam D. Active Member

    If you do, you can't put memcached in config.php anymore (or at least that's what I know, correct me if I'm wrong). APC works "kinda automatic" anyway, other webmasters do it.
    RoldanLT likes this.
  9. RoldanLT

    RoldanLT Well-Known Member

    nginx or apache?
  10. Liam D.

    Liam D. Active Member

    Not sure about NginX, but that's how Apache works in my knowledge.
    RoldanLT likes this.
  11. euantor

    euantor Well-Known Member

    APC as opcode, memcache as distributed memory cache.
  12. Adam Howard

    Adam Howard Well-Known Member

    memcache and memcached (yes, there are two named almost the same) really only benefit you if you're using more than one server in your configuration. There is documentation on this.

    APC installed, but don't add it to config.php. APC alone will help speed up all PHP on your system. xCache is what would be good to add to your config.php

    If you're using cPanel, you will want to build xcache from source. The one bundled isn't complete (you need to configure it) and isn't as updated as the source. And isn't supported (even though they supply it). You need only visit their support forum to learn this.

    php 5.5 (not yet final) will include Zend Optimizer+ XenForo is built off of the zend framework and I've tried the cache.... You're all going to LOVE php 5.5 once it is out.
  13. AdamD

    AdamD Well-Known Member

    Haven't had much luck with Xenforo and Xcache on my server, users keep getting logged out, I too experience the same problem, especially in the admin panel.

    I'll login, click a new tab in the admin panel and I'm logged out

    Running Apache with Nginx to serve static content, latest version of XF and Xcache.

    Anyone else experiencing this? Tempted to try switching to, or installing APC or Eaccelerator.
  14. Sheratan

    Sheratan Well-Known Member

    Want to share your xcache.ini and config.php?
  15. AdamD

    AdamD Well-Known Member

    XCachesettings look like this:

  16. Sheratan

    Sheratan Well-Known Member

    I see...

    I suggest you enable xcache auth and then upload xcache admincp ("htdocs" folder) into your site. Xcache admincp will show you some suggestion about settings and performance.

    Dont forget to add admin.pass and admin.user :)
    Adam Howard likes this.
  17. RoldanLT

    RoldanLT Well-Known Member

    Are you using ssl/https?
  18. AdamD

    AdamD Well-Known Member

    No, no https/ssl

    And yea, it's odd, it only affects Xenforo, I have a VB 4.2 forum running without issue on the same server, utilizing Xcache.
  19. RoldanLT

    RoldanLT Well-Known Member

  20. Stallyon

    Stallyon Active Member

    I currently have my vBulletin 4.2.0 forum that I am converting to the latest Xenforo, running memcache. Does Xenforo support memcache accelerator or would I be better changing to another type like Xcache or APC? I have a VPS server with 1GB of memory, CentOS 5.9 64-bit with Xen VPS running cPanel bleeding-edge, Apache 2.4.4, PHP 5.3.23, MySQL 5.5.30. Also, am I now able to upgrade to PHP 5.4 since I am dumping that lame duck that is vBulletin?

    Thanks in advance.

Share This Page