Skip to main content

Reduce or disable the undo/redo capability

The History Manager works behind the scenes to enable the Undo/Redo feature in the Beaver Builder editor. By default, the History Manager is set to store a maximum of 20 undo states for the page or post you're editing.

In some environments, the History Manager can cause the editor to act sluggish and the Undo/Redo functionality can be very slow. In particular, two interacting factors can cause the default maximum of stored History Manager states to be less than ideal: ​

  • Your site is in a shared hosting environment.
  • The page you're editing has a large number of rows and modules.

In these cases, it can be helpful to reduce the number of states stored in the History Manager or disable it entirely, using one of the following methods.

Disable the History Manager while editing a single page

You can add a parameter to the URL of the page you're editing to erase the current history and block the History Manager from saving undo states until the parameter is removed.

  1. With the Beaver Builder editor open, add &nohistory to the end of your URL.
    For example:
  https://mysite.com/?fl_builder&nohistory
  1. Press Return on your keyboard.

With this parameter enabled, if you click History in the Tools menu, you'll see no items. ​

Reduce or disable the History Manager site-wide

You can reduce the number of states the History manager remembers or disable it site-wide more permanently by adding a few lines of code to wp-config.php in your WordPress installation.

  1. Open the wp-config.php file for editing.
  2. Add the following code before the line that says /* That's all, stop editing! Happy publishing. */:
define( 'FL_BUILDER_HISTORY_STATES', 20 );

Change the number of states from 20 (the default number of states) to a smaller number, or change the number to 0 to disable the History Manager entirely.

Tip

Try reducing the number of stored History Manager states to 10 and check performance, then tweak up or down.

If you disable the History Manager entirely with this command, then the next time you open the Beaver Builder editor, if you click History in the Tools menu, you'll see the message Undo/redo history is currently disabled.

To restore normal History Manager functionality, remove this code from the wp-config.php file.