• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.