Page 1 of 1

Limit funtionality before site downtime

PostPosted: Mon Jan 13, 2014 3:26 am
by Dako
If there is a planned maintenance of the website it would be great to do 2 things.

a) disable creating of new speed games 30 mins before the downtime
b) disable "start turn" for casual games 1 hour before the downtime
c) disable "start turn" for speed games 5 mins before the downtime


This will remove the need to delete the games that have gone wrong. There just will be no mistakes.

Re: Limit funtionality before site downtime

PostPosted: Sat Jan 18, 2014 2:49 pm
by chapcrap
I have spoken with bigWham about this and there is supposed to already be some code in for this:
bigWham wrote:actually something like this was already done. here is some actual CC code:

define("DBDOWNBLOCK", '1200'); //time in seconds to block Begin Turns or Games before scheduled maintenance

i believe the first time this was tried it did not work entirely perfectly. however we have not had a scheduled downtime for some time, so there has not been a chance to try it again.

That doesn't address all of the issues in the OP, but it does solve the general idea I think.

Also, the problem with not allowing casual turns for an hour before is that every down time has to be over and hour that way, even if the maintenance were to only take 10-15 minutes, then we have to shut down most players for an extra hour.