You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stache.php 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | File Watcher
  6. |--------------------------------------------------------------------------
  7. |
  8. | File changes will be noticed and data will be updated accordingly.
  9. | This can be disabled to reduce overhead, but you will need to
  10. | either update the cache manually or use the Control Panel.
  11. |
  12. */
  13. 'watcher' => env('STATAMIC_STACHE_WATCHER', 'auto'),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Cache Store
  17. |--------------------------------------------------------------------------
  18. |
  19. | Here you may configure which Cache Store the Stache uses.
  20. |
  21. */
  22. 'cache_store' => null,
  23. /*
  24. |--------------------------------------------------------------------------
  25. | Stores
  26. |--------------------------------------------------------------------------
  27. |
  28. | Here you may configure the stores that are used inside the Stache.
  29. |
  30. | https://statamic.dev/stache#stores
  31. |
  32. */
  33. 'stores' => [
  34. //
  35. ],
  36. /*
  37. |--------------------------------------------------------------------------
  38. | Indexes
  39. |--------------------------------------------------------------------------
  40. |
  41. | Here you may define any additional indexes that will be inherited
  42. | by each store in the Stache. You may also define indexes on a
  43. | per-store level by adding an "indexes" key to its config.
  44. |
  45. */
  46. 'indexes' => [
  47. //
  48. ],
  49. /*
  50. |--------------------------------------------------------------------------
  51. | Locking
  52. |--------------------------------------------------------------------------
  53. |
  54. | In order to prevent concurrent requests from updating the Stache at the
  55. | same time and wasting resources, it will be locked so that subsequent
  56. | requests will have to wait until the first one has been completed.
  57. |
  58. | https://statamic.dev/stache#locks
  59. |
  60. */
  61. 'lock' => [
  62. 'enabled' => true,
  63. 'timeout' => 30,
  64. ],
  65. ];