1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?php
-
- return [
-
- /*
- |--------------------------------------------------------------------------
- | Active Static Caching Strategy
- |--------------------------------------------------------------------------
- |
- | To enable Static Caching, you should choose a strategy from the ones
- | you have defined below. Leave this null to disable static caching.
- |
- */
-
- 'strategy' => env('STATAMIC_STATIC_CACHING_STRATEGY', null),
-
- /*
- |--------------------------------------------------------------------------
- | Caching Strategies
- |--------------------------------------------------------------------------
- |
- | Here you may define all of the static caching strategies for your
- | application as well as their drivers.
- |
- | Supported drivers: "application", "file"
- |
- */
-
- 'strategies' => [
-
- 'half' => [
- 'driver' => 'application',
- 'expiry' => null,
- ],
-
- 'full' => [
- 'driver' => 'file',
- 'path' => public_path('static'),
- 'lock_hold_length' => 0,
- ],
-
- ],
-
- /*
- |--------------------------------------------------------------------------
- | Exclusions
- |--------------------------------------------------------------------------
- |
- | Here you may define a list of URLs to be excluded from static
- | caching. You may want to exclude URLs containing dynamic
- | elements like contact forms, or shopping carts.
- |
- */
-
- 'exclude' => [
- //
- ],
-
- /*
- |--------------------------------------------------------------------------
- | Invalidation Rules
- |--------------------------------------------------------------------------
- |
- | Here you may define the rules that trigger when and how content would be
- | flushed from the static cache. See the documentation for more details.
- | If a custom class is not defined, the default invalidator is used.
- |
- | https://statamic.dev/static-caching
- |
- */
-
- 'invalidation' => [
-
- 'class' => null,
-
- 'rules' => [
- //
- ],
-
- ],
-
- /*
- |--------------------------------------------------------------------------
- | Ignoring Query Strings
- |--------------------------------------------------------------------------
- |
- | Statamic will cache pages of the same URL but with different query
- | parameters separately. This is useful for pages with pagination.
- | If you'd like to ignore the query strings, you may do so.
- |
- */
-
- 'ignore_query_strings' => false,
-
- ];
|