XF 1.3 Rebuilding the 'templates as files' cache?

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?

Thanks
Jake
 
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.
 
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.

Thanks Mike. I think we will write some sort of addon to propagate the changes.
 
Back
Top Bottom