# Read-only mode please!

**URL:** <https://meta.discourse.org/t/read-only-mode-please/12163>\
**Category:** Feature\
**Tags:** read-only\
**Created:** [24 Gennaio 2014, 6:23am UTC](https://meta.discourse.org/t/read-only-mode-please/12163 "2014-01-24T06:23:27Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [21 Febbraio 2014, 4:12pm UTC](https://meta.discourse.org/t/read-only-mode-please/12163/7 "2014-02-21T16:12:10Z")

</div>

> [@supermathie](#):
>
> How do I do it from a rake task (or CLI)?

You can [now](https://github.com/discourse/discourse/commit/4c941495e5a28955c07d97ef04b16da538de7b4f) run `script/discourse enable_readonly` or `script/discourse disable_readonly` to enable/disable the readonly mode.

> [@supermathie](#):
>
> Where is it saved? Postgres or redis?

As @riking said, it’s saved in redis right now. Would not make sense to save it in a read-only database 😄

> [@supermathie](#):
>
> Presumably this only affects a single site in a multisite setup, so how can I toggle it for all sites on a host?

Not implemented yet. This was mostly made for a site’s admin. Not a super-admin.

---

_[View the full topic](https://meta.discourse.org/t/read-only-mode-please/12163)._
