Welcome Guest, Not a member yet? Register   Sign In
Making site offline
#4

[eluser]devbro[/eluser]
i am not sure if this would help or no but give it a try.

in your default application create a custom hook.

create either a "pre_controller" or a "post_controller_constructor"


this hook would go and check if an update is in progress. if so then kill the request and redirect to a "server is under update" page.

just remember that your cron job should reset whatever it is that tells the hook that update is in progress. it can be a temp file or a database record.


Messages In This Thread
Making site offline - by El Forum - 01-23-2009, 12:50 PM
Making site offline - by El Forum - 01-23-2009, 01:45 PM
Making site offline - by El Forum - 01-23-2009, 03:52 PM
Making site offline - by El Forum - 01-23-2009, 04:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB