text4u
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

autosave.php 1.1KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Enable autosave
  6. |--------------------------------------------------------------------------
  7. |
  8. | THIS IS A EXPERIMENTAL FEATURE. Things may go wrong.
  9. |
  10. | Set to true to enable autosave. You must also enable autosave
  11. | manually in every collection in order for it to work.
  12. |
  13. | For example, inside `content/collections/pages.yaml`, add
  14. | `autosave: 5000` for a 5s interval or `autosave: true`
  15. | to use the default interval as defined below.
  16. |
  17. */
  18. 'enabled' => false,
  19. /*
  20. |--------------------------------------------------------------------------
  21. | Default autosave interval
  22. |--------------------------------------------------------------------------
  23. |
  24. | The default value may be set here and will apply to all collections.
  25. | However, it is also possible to manually adjust the value in the
  26. | each collection's config file. By default, this is set to 5s.
  27. |
  28. */
  29. 'interval' => 5000,
  30. ];