We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48842
    • 37 Posts
    After using MODX/manager for a while (a couple hours) I am suddenly again getting "502 bad gateway" responses! )-:

    As expected, uninstalling XCache resolves the issue.


    Quote from: AMDbuilder at Sep 14, 2014, 06:15 PM
    The one recommendation I would make is switching to APC instead of xcache, as MODX should leverage it better (and it's more performant).

    Do you have experience with APC on Nginx? Is it possible this will lead to the same 502 problems?

    Also, why do you say APC is more performant? Is this a MODX specific observation? Everything I've read about the current state of affairs in PHP caching seems to indicate XCache is more performant. [And as of 5.6 it apparently makes sense to use the built in Zend optimizer . . . ]

    Either way, perhaps the cache should be setup so that MODX/manager is not cached?
      • 48842
      • 37 Posts
      Quote from: fbachofner at Sep 14, 2014, 07:22 PM
      [And as of 5.6 it apparently makes sense to use the built in Zend optimizer . . . ]

      It turns out this is already in 5.5x which I am running.

      I've enabled Opcache and will report back. Hopefully I'll get more than 2 hours use before a 502 error!

      ;-)
        • 1343 ☆ A M B ☆
        • 2,213 Posts
        Yes, we use APC with PHP 5.4 at this point in time with no problems. My research at the time indicated that APC was the more performant solution at the time. Naturally, with PHP 5.5 you do have built in opcaching, but I haven't done much testing with it at this time.

        There are pros/cons to being on the cutting edge wink
          Patrick | Server Wrangler
          About Me: Website | Tweets |  MODX Hosting