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

XF 1.3 Rebuilding the 'templates as files' cache?

Discussion in 'XenForo Questions and Support' started by jakew009, Nov 14, 2014.

  1. jakew009

    jakew009 Member

    We are in the process of moving our Xenforo forum to a new fully redundant setup.

    We have 2 web servers both also running memcached and 2 database servers with load balancer in front.
    The database are master / master and only one is being used at any time (the other is for failover).

    One problem we have come up against is if we modify the template on one of the servers, the template file is invalidated and replaced.

    However, on the other web server, the template file remains.

    Is there anyway of forcing a rebuild of the public template files?

  2. jakew009

    jakew009 Member

  3. Mike

    Mike XenForo Developer Staff Member

    There isn't a specific way of forcing this on both of your servers. You can disable/enable the option and that should force them to be rewritten, but you'd need to do that on both servers. Additionally, there is a code event you can listen to for when the template files are written to, to ensure that they're propagated to the other servers.
    thedude and jakew009 like this.
  4. jakew009

    jakew009 Member

    Thanks Mike. I think we will write some sort of addon to propagate the changes.
  5. Fred.

    Fred. Well-Known Member

Share This Page