Feature Request: Option to Disable Page Revisioning and Restores #277

Closed
opened 2026-02-04 18:15:29 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @nh-mike on GitHub (Feb 23, 2017).

Hi all,

I am requesting to have an option in settings to disable page revisions and restoring. While this is a nice feature, it is unnecessary for my use of Bookstack and will lead to a larger database size that I will find necessary, and I am sure that somewhere, someone else might find this useful too. It would also be nice to be able to turn off recent activities, and to have the option to set the redirect to /books when a user logs in.

In short, it would be nice if we could keep our activities and page_revisions tables empty.

Thanks guys.

Originally created by @nh-mike on GitHub (Feb 23, 2017). Hi all, I am requesting to have an option in settings to disable page revisions and restoring. While this is a nice feature, it is unnecessary for my use of Bookstack and will lead to a larger database size that I will find necessary, and I am sure that somewhere, someone else might find this useful too. It would also be nice to be able to turn off recent activities, and to have the option to set the redirect to /books when a user logs in. In short, it would be nice if we could keep our activities and page_revisions tables empty. Thanks guys.
OVERLORD added the 🛠️ Enhancement label 2026-02-04 18:15:29 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Feb 23, 2017):

Hi @nh-mike, Thanks for your suggestion.

I understand your reasoning but I'm a little adverse to making some of the core features conditional (From a project maintainability point of view) without a lot of request for it.

If we added a couple of commands: A 'Clear revisions' command and a 'Clear Activity' command, Would that help? That way you could run those commands periodically on a cron job to keep database sizes down and those features would still have short-term benefits (Such as rolling back a change straight after making a mistake).

@ssddanbrown commented on GitHub (Feb 23, 2017): Hi @nh-mike, Thanks for your suggestion. I understand your reasoning but I'm a little adverse to making some of the core features conditional (From a project maintainability point of view) without a lot of request for it. If we added a couple of commands: A 'Clear revisions' command and a 'Clear Activity' command, Would that help? That way you could run those commands periodically on a cron job to keep database sizes down and those features would still have short-term benefits (Such as rolling back a change straight after making a mistake).
Author
Owner

@nh-mike commented on GitHub (Feb 24, 2017):

Hi @ssddanbrown, while it is not exactly what I am looking for, we can run with it. I appreciate the reasoning to not do this, and would be happy with a cron accessible command to truncate the tables. Yes, this would be helpful.

Thanks.

@nh-mike commented on GitHub (Feb 24, 2017): Hi @ssddanbrown, while it is not exactly what I am looking for, we can run with it. I appreciate the reasoning to not do this, and would be happy with a cron accessible command to truncate the tables. Yes, this would be helpful. Thanks.
Author
Owner

@ssddanbrown commented on GitHub (Apr 9, 2017):

Whoops, Looks like I forgot to comment back on this issue after the release of v0.15. Since the above mentioned commands were added in v0.15 (documentation here) I will close this issue. I'll keep the original request in mind and keep note of anyone else requesting the ability to disable restores or revisions.

@ssddanbrown commented on GitHub (Apr 9, 2017): Whoops, Looks like I forgot to comment back on this issue after the release of v0.15. Since the above mentioned commands were added in v0.15 ([documentation here](https://www.bookstackapp.com/docs/admin/commands/)) I will close this issue. I'll keep the original request in mind and keep note of anyone else requesting the ability to disable restores or revisions.
Author
Owner

@quaintdev commented on GitHub (Jan 19, 2022):

I referred to documentation and it seems there is no way to do this from user interface which is understandable since this is not something one would do frequently.

My issue is I am running Bookstack via docker. Tried to run clear revision command inside main docker container but it gives error cannot open input file: artisan. Where should I execute php artisan command inside the container? Any help would be highly appreciated.

Thanks!

@quaintdev commented on GitHub (Jan 19, 2022): I referred to documentation and it seems there is no way to do this from user interface which is understandable since this is not something one would do frequently. My issue is I am running Bookstack via docker. Tried to run clear revision command inside main docker container but it gives error `cannot open input file: artisan`. Where should I execute `php artisan` command inside the container? Any help would be highly appreciated. Thanks!
Author
Owner

@nh-mike commented on GitHub (Jan 19, 2022):

Hi @quaintdev yes, you must run it inside the container.

docker exec -it bookstack /usr/bin/php /var/www/html/artisan

Of course followed by any necessary artisan commands. This assumes you have named your container "bookstack".

@nh-mike commented on GitHub (Jan 19, 2022): Hi @quaintdev yes, you must run it inside the container. `docker exec -it bookstack /usr/bin/php /var/www/html/artisan` Of course followed by any necessary artisan commands. This assumes you have named your container "bookstack".
Author
Owner

@noname1001 commented on GitHub (Apr 20, 2024):

I couldn't execute the command because artisan is in a different folder.

My bookstack setup is based on the lscr.io/linuxserver/bookstack image.

I wanted to clear the revisions and had to run this command:

docker exec -it bookstack php /app/www/artisan bookstack:clear-revisions

@noname1001 commented on GitHub (Apr 20, 2024): I couldn't execute the command because artisan is in a different folder. My bookstack setup is based on the lscr.io/linuxserver/bookstack image. I wanted to clear the revisions and had to run this command: `docker exec -it bookstack php /app/www/artisan bookstack:clear-revisions`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#277