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

Disable Board With Query/Script

Ghan_04

Active member
#1
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?
 

James

Well-known member
#2
You can enable debug mode manually using XenForo_Application::setDebugMode(true);

Stick that into a cron or however you wish to do it.
 

shawn

Well-known member
#4
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.