the bola v2 website
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.

static_caching.php 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Active Static Caching Strategy
  6. |--------------------------------------------------------------------------
  7. |
  8. | To enable Static Caching, you should choose a strategy from the ones
  9. | you have defined below. Leave this null to disable static caching.
  10. |
  11. */
  12. 'strategy' => env('STATAMIC_STATIC_CACHING_STRATEGY', null),
  13. /*
  14. |--------------------------------------------------------------------------
  15. | Caching Strategies
  16. |--------------------------------------------------------------------------
  17. |
  18. | Here you may define all of the static caching strategies for your
  19. | application as well as their drivers.
  20. |
  21. | Supported drivers: "application", "file"
  22. |
  23. */
  24. 'strategies' => [
  25. 'half' => [
  26. 'driver' => 'application',
  27. 'expiry' => null,
  28. ],
  29. 'full' => [
  30. 'driver' => 'file',
  31. 'path' => public_path('static'),
  32. 'lock_hold_length' => 0,
  33. ],
  34. ],
  35. /*
  36. |--------------------------------------------------------------------------
  37. | Exclusions
  38. |--------------------------------------------------------------------------
  39. |
  40. | Here you may define a list of URLs to be excluded from static
  41. | caching. You may want to exclude URLs containing dynamic
  42. | elements like contact forms, or shopping carts.
  43. |
  44. */
  45. 'exclude' => [
  46. //
  47. ],
  48. /*
  49. |--------------------------------------------------------------------------
  50. | Invalidation Rules
  51. |--------------------------------------------------------------------------
  52. |
  53. | Here you may define the rules that trigger when and how content would be
  54. | flushed from the static cache. See the documentation for more details.
  55. | If a custom class is not defined, the default invalidator is used.
  56. |
  57. | https://statamic.dev/static-caching
  58. |
  59. */
  60. 'invalidation' => [
  61. 'class' => null,
  62. 'rules' => [
  63. //
  64. ],
  65. ],
  66. /*
  67. |--------------------------------------------------------------------------
  68. | Ignoring Query Strings
  69. |--------------------------------------------------------------------------
  70. |
  71. | Statamic will cache pages of the same URL but with different query
  72. | parameters separately. This is useful for pages with pagination.
  73. | If you'd like to ignore the query strings, you may do so.
  74. |
  75. */
  76. 'ignore_query_strings' => false,
  77. ];