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

XF 1.3 Member registration/admin changes stop working after a while on VPS (cache related)

Discussion in 'Troubleshooting and Problems' started by derpyhooves, May 11, 2014.

  1. derpyhooves

    derpyhooves Active Member

    Ever since I moved onto a vps my member registrations and admin changes would stop working after a while.

    The registration page would come up with a google chrome error page and admin changes to people's profiles would load for a while,t hen the page would refresh without the banner appearing at the top saying that the changes were saved.

    I've researched this on the forums and it seems that restarting httpd fixes it temporarily.
    I've spoken about this with my host and they have said this.

    To me having to restart my vps every few hours doesn't seem like a very good idea as my forum is getting more and more members, and there has to be another option. Would there be a way to increase the cache in size? or is it limited to the ram I have on my vps or what exactly? Keep in mind that I have not defined a cache as seen here: http://xenforo.com/help/cache/

    This is a pretty serious issue and I hope it can be resolved one way or another, please someone help me.
     
  2. Mike

    Mike XenForo Developer Staff Member

    The cache in this question is likely a PHP opcode cache such as APC. Issues like this can pop up if you use an opcode cache with a version of PHP that it's not 100% designed for (or if there are other PHP extensions that conflict).

    Unfortunately, the only real things that can be done are disabling the opcode cache (not ideal for performance), trying a different opcode cache/opcode cache version/different PHP version. In general, I think these issues are most often seen with APC and PHP 5.4. Note that PHP 5.5 has a built-in opcode cache, so that may be worth a shot.
     
    derpyhooves likes this.
  3. derpyhooves

    derpyhooves Active Member

    Hey Mike thanks for the reply. My vps is indeed running on PHP 5.4.24 . Would a simple update to 5.5 fix the issue? Or do I need to do something else aswell?
     
  4. Mike

    Mike XenForo Developer Staff Member

    I couldn't make a guarantee as to what would fix it, but switching to PHP 5.5 and the built-in opcode cache (rather than APC) may solve the issue.
     

Share This Page