--- label: 'Enabling and disabling maintenance mode' related: - core.maintenance - system.cache --- {% set cache_topic = render_var(help_topic_link('system.cache')) %} {% set maintenance_link_text %}{% trans %}Maintenance mode{% endtrans %}{% endset %} {% set maintenance_link = render_var(help_route_link(maintenance_link_text, 'system.site_maintenance_mode')) %}

{% trans %}Goal{% endtrans %}

{% trans %}Put your site in maintenance mode to perform maintenance operations, and then return to normal mode when finished.{% endtrans %}

{% trans %}What is maintenance mode?{% endtrans %}

{% trans %}When your site is in maintenance mode, most site visitors will see a simple maintenance mode message page, rather than being able to use the full functionality of the site. Users with Use the site in maintenance mode permission who are already logged in will be able to use the full site, and the log in page at /user will also be accessible to anyone.{% endtrans %}

{% trans %}Steps{% endtrans %}

  1. {% trans %}In the Manage administrative menu, navigate to Configuration > Development > {{ maintenance_link }}.{% endtrans %}
  2. {% trans %}Check Put site into maintenance mode, optionally change the Message to display when in maintenance mode, and click Save configuration. Your site will be in maintenance mode.{% endtrans %}
  3. {% trans %}Perform your maintenance operations.{% endtrans %}
  4. {% trans %}In the Manage administrative menu, navigate to Configuration > Development > {{ maintenance_link }}.{% endtrans %}
  5. {% trans %}Uncheck Put site into maintenance mode and click Save configuration. Your site will be back in normal operation mode.{% endtrans %}
  6. {% trans %}Clear the site cache. See {{ cache_topic }} for instructions.{% endtrans %}