Disable Board With Query/Script

Ghan_04

Active member
So I'm running xenForo on a VPS with APC on the front end and memcached running for backend caching. It would be nice if I could disable the board with a message when my nightly database backup runs, but I'm not sure what the correct procedure here would be.
Has anyone else done this and if so, what are the steps you need to take to ensure that all the caching, etc. is taken care of to keep the software happy?
 
Are you running nginx?

I copy a maintenance mode/503 page into the web root with a cron job whenever any maintenance tasks like that are running. If nginx sees the file in the directory, it returns 503 and displays the error page. The script rm's it when everything is done.
 
Back
Top Bottom