Maintenance module
Written by: Maciej Grajcarek
May 1, 2008
Perhaps you have been in a situation when you need to put your cake-based web site in a maintenance mode. Our solution to this problem is very easy and flexible. All you need to do is to download the appropriate module from our svn repository and put files in the proper folders.
Next step is to include the maintenance component in app_controller
var $components = array('Maintenance');
The last thing you have to do is to set parameters in the MaintenanceComponent.
var $active = true; var $redirect = '/maintenance'; var $usePassword = true; var $accessPassword = 'secretPassword';
As you can see, you can easily activate/deactivate maintenance mode and allow the users who know the password access the site.
Also, all access requests to the site from the localhost will be allowed.
Posted in



May 29th, 2009 at 10:47 am
Is this module still available? There appears to be a problem with the SVN login.
June 22nd, 2009 at 6:24 pm
Hi, same question. What about this module as we can’t access more to the SVN?
Thanks
June 22nd, 2009 at 6:41 pm
Hi Julien, check out this post
August 5th, 2009 at 7:00 am
Hi Daniel:
It seems the updated svn repository still doesn’t work…
I tried with svn commandline and also tortoiseSVN.
August 5th, 2009 at 12:39 pm
hello,
this would be the svn commando to export this module to your computer:
svn –username anon –password anon export svn://svn.devayd.com/cake/modules/maintenance maintenance
regards, daniel