Does any one knows, how to create or use CRON to activate Maintenance mode in Magento? any sample script or reference will help.


Develop a cron, and create an empty file programmatically in var directory with the name .maintenance.flag then schedule your cron accordingly

And if you want to remove maintenance mode then schedule another cron to delete this file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.